MsgBox, VBA, custom

  • Thread starter Thread starter redFred
  • Start date Start date
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.
 
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
 
Thanks to you both for replying. Albert, looks like what you suggest is
going to work nicely. Thanks.
 

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