Msgbox Message

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am trying to add a Msgbox that if an Item is not select
in the option box then say need to check a report. How
can I do that? Thanks
 
Hello,

I am trying to add a Msgbox that if an Item is not select
in the option box then say need to check a report. How
can I do that? Thanks

The easiest thing to do is set a default value for your option group.
If not then add code like this to the OnClick event of the button that
the users press to run the report.

If IsNull(Me.Frame0) Then 'Frame0 is the name of the Option group
MsgBox "choose something"
Exit Sub
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top