davesmith202
Employee of Access World
- Local time
- Today, 22:26
- Joined
- Jul 20, 2001
- Messages
- 522
When I click a button on my switchboard, it opens a Contacts form with a list of contacts. The contacts form source is controlled with this code:
The switchboard code for each button is similar to this:
When I click off that tab (using Access 2007!) and go back to the switchboard, I can click another button for a different set of data. However, the contents remain the same.
How can I get it to refresh?
Thanks,
Dave
Code:
Private Sub Form_Load()
Select Case intWhichForm
Case 1
Me.RecordSource = "qry1"
Case 2
Me.RecordSource = "qry2"
Case 3
Me.RecordSource = "qry3"
End Select
Me.Requery
End Sub
The switchboard code for each button is similar to this:
Code:
intWhichForm = 1
DoCmd.OpenForm "Contact List", acNormal
When I click off that tab (using Access 2007!) and go back to the switchboard, I can click another button for a different set of data. However, the contents remain the same.
How can I get it to refresh?
Thanks,
Dave