vb Yes/No

coley

Coley
Local time
Today, 21:22
Joined
Feb 22, 2005
Messages
39
Hi

I am using the VBYes/No function, what do I need to write to be able to populate a designated field/text box with either Yes or No from what was clicked.

Keith
 
coley said:
I am using the VBYes/No function

Can you further explain what you mean? There is no Yes/No function in VB.
 
vbYesNo

this is what i have got

userResponse3 = MsgBox("Has the project been sent to ITRM for an Estimate?", vbYesNo, "ITRM?")

If userResponse3 = vbYes Then


What do i put next, i need this to happen, if the user clicks 'yes' then Yes is to populate in the field, clicks 'No' No populates?

yell if you need more

keith
 
Code:
If MsgBox("Has the project been sent to ITRM for an Estimate?", vbYesNo, "ITRM?") = vbYes Then
     MyTextBox = "Yes"
Else
     MyTextBox = "No"
end if
 
Last edited:

Users who are viewing this thread

Back
Top Bottom