MsgBox, VBA, custom

R

redFred

Access novice here...can someone show me (if there is a simple way) to create
a message box such as vbYesNoCancel wherein I can change the text to read
something else? I am able to use the standard vbMessages, but want more.

I want my user to select either item 1 or item 2 or item 3 and and the
attached code will respond accordingly.

Thanks in advance for any help.
 
R

Roger Converse

I am not sure if there is a better way, but in the past, I have created an
InputBox for such cases. I typically give the choices and explanations in
the text portion of the InputBox. Then the user can enter the option that
they want and you can add as many options as you'd like.

For example:

strResponse = InputBox("Enter A to create Report A" & vbcrlf & "Enter 'B'
to run report B.....", vbokOnly, msglbl)

Thanks,
Roger
 
R

redFred

Thanks to you both for replying. Albert, looks like what you suggest is
going to work nicely. Thanks.
 
Top