G
Guest
I'm having trouble running a macro after the Else part of an If statement.
Private Sub fedprovpre_Click()
Dim stDocName As String
If IsNull(Me![cbo_IDPrint]) Then
MsgBox "Choose Entity and Period from dropdown box!", , "Wait a
second!!!"
Else
stDocName = "mcr_4a Preview Federal Provision"
DoCmd.RunMacro stDocName
End If
End Sub
What am I doing wrong here??
Private Sub fedprovpre_Click()
Dim stDocName As String
If IsNull(Me![cbo_IDPrint]) Then
MsgBox "Choose Entity and Period from dropdown box!", , "Wait a
second!!!"
Else
stDocName = "mcr_4a Preview Federal Provision"
DoCmd.RunMacro stDocName
End If
End Sub
What am I doing wrong here??