Payal Patel
Registered User.
- Local time
- Today, 08:34
- Joined
- Nov 3, 2009
- Messages
- 34
Hi,
I have a form with a command button to execute 2 queries. Here is the code I have:
Private Sub Command7_Click()
DoCmd.SetWarnings False
DoCmd.OpenQuery "Concat Query"
DoCmd.OpenQuery "Make Table Query"
DoCmd.SetWarnings True
MsgBox "Execution Complete"
End Sub
When I run this through the command button, instead of just running, it opens the tables. Is there a way where if I just press the comman button to execute, it doesn't take me to the tables.
Thanks,
I have a form with a command button to execute 2 queries. Here is the code I have:
Private Sub Command7_Click()
DoCmd.SetWarnings False
DoCmd.OpenQuery "Concat Query"
DoCmd.OpenQuery "Make Table Query"
DoCmd.SetWarnings True
MsgBox "Execution Complete"
End Sub
When I run this through the command button, instead of just running, it opens the tables. Is there a way where if I just press the comman button to execute, it doesn't take me to the tables.
Thanks,