G
GD
I'm trying to run some simple code (at least it should be!). If
txtVendorKeyword is empty, I need macro M02_RunQryMASTER run. And if there
is a text string there, I need macro M03_CMDMProject run. Here's what I have:
Private Sub cmdSearchAP_Click()
If Me.txtVendorKeyword Is Not Null Then
DoCmd.RunMacro "M03_CMDMSearch"
Else
DoCmd.RunMacro "M02_RunQryMASTER"
End If
End Sub
Nothing happens when I click the command button. What am I doing wrong?
THANKS!!
txtVendorKeyword is empty, I need macro M02_RunQryMASTER run. And if there
is a text string there, I need macro M03_CMDMProject run. Here's what I have:
Private Sub cmdSearchAP_Click()
If Me.txtVendorKeyword Is Not Null Then
DoCmd.RunMacro "M03_CMDMSearch"
Else
DoCmd.RunMacro "M02_RunQryMASTER"
End If
End Sub
Nothing happens when I click the command button. What am I doing wrong?
THANKS!!