Message boxes

Robert C

Registered User.
Local time
Today, 03:30
Joined
Mar 27, 2000
Messages
88
Sorry - very simple question.

How do I get a message box with just an OK button on it to appear when a form opens?

Thanks
 
Try creating a macro which uses the MsgBox action. Here you can create your custom message etc. Attach this macro to your form's OnOpen event.

I think I'm right in saying that VB's default message box style is vbOKOnly i.e. it only has an OK button.

Hope this helps
 
Open your form in design view, and right click on the upper left corner of the form and call up the proreties for the form. Go to the events tab and choose OnLoad then hit the ellipse (...) to the right of this box. This will take you to the VB screen, now just type:
msgbox "Whatever you want to say here"

Then save it, Access msgbox's default to just an OK button.


HTH
Robert
 

Users who are viewing this thread

Back
Top Bottom