Hi all, I just need some help with VBA. I am not a very good coder. So, I have a report that I want to only open if there is a selection in the nearby combo box (cboEvent). If there is not a selection I want it to pop up a message and cancel the report, if there is a selection it will just do it's thing. I know I am totally off but I was trying to do it myself first. Please correct my code.
If cboEvent.Value = is null Then
MsgBox "You must first select an event!", vbOKCancel
Else
DoCmd.OpenReport stDocName, acPreview
End If
Thank you!!!
Dawn
If cboEvent.Value = is null Then
MsgBox "You must first select an event!", vbOKCancel
Else
DoCmd.OpenReport stDocName, acPreview
End If
Thank you!!!
Dawn