Is there a way to actually asign code to the vbyesno option. Basically what I want to do is if you choose yes, the cursor goes to my next tab stop. If you choose no, it stays on the current tab stop. Any ideas.
If Response = vbYes Then ' User chose Yes.
MyString = "Yes" ' Perform some action.
<**insert your code here if the user clicks yes**>
Else ' User chose No.
MyString = "No" ' Perform some action.
<**insert your code here if the user clicks no**>
usually, if you just want to cancel the current action, I just put a number 2 for cancel
End If
Also, if you just want to do a simple msgbox in the future, you can do this: msgbox "You cant do that here",vbOkOnly + vbInformation,"msgbox title goes here"
When you start the msgbox, it will give you intellisense and show you what goes where, just follow along and BAM, you want fries with that?
Take out what you dont need and you can customize your buttons in the Style above.. msgbox help in Access has more information as well..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.