G
Guest
I have a dialog box that prompts the user to select parameters for the
underlying query via a combobox. Currently the default value of the combobox
is "Choose Entity and Period" and if the user does not choose from the
dropdown choices a messagebox tells the user to choose. But after the user
makes a choice and clicks the button to execute a macro the database locks up
and you have to exit. I used the following code:
Private Sub fedprovpre_Click()
If Me![cbo_IDPrint] = "Choose Entity and Period" Then
MsgBox "Choose Entity and Period from dropdown box!", , "Wait a
second!!!"
Else
DoCmd.RunMacro "mcr_4a Preview Federal Provision"
End If
End Sub
Help?
underlying query via a combobox. Currently the default value of the combobox
is "Choose Entity and Period" and if the user does not choose from the
dropdown choices a messagebox tells the user to choose. But after the user
makes a choice and clicks the button to execute a macro the database locks up
and you have to exit. I used the following code:
Private Sub fedprovpre_Click()
If Me![cbo_IDPrint] = "Choose Entity and Period" Then
MsgBox "Choose Entity and Period from dropdown box!", , "Wait a
second!!!"
Else
DoCmd.RunMacro "mcr_4a Preview Federal Provision"
End If
End Sub
Help?