Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input box

Status
Not open for further replies.

shaz123

Technical User
Oct 13, 2006
60
DE
Is it possible to change an inputbox, showing the yes and no option instead of OK and cancel?
 
Why? If you need to ask a Yes/No type question, use a MsgBox instead.

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
 
Well the thing is depending on if the user clicks on yes or no button i needed to input some information into a table. How would u refer to a button on the msgbox.
 
OK...so you are asking the user a question and need to do something based on their response.

Code:
If MsgBox("Do you wish to continue?", vbYesNo, "Continue?") = vbYes Then
    'Do something here
End If

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top