Update Button ...

Christopherusly

Village Idiot.
Local time
Today, 12:55
Joined
Jan 16, 2005
Messages
81
Is it possible to update a field in a record using a VBA button ?

What i want to do is have a button on a form, which when pressed changes a certain field value from its default "no" to "yes", i am happy with how to do the yes no VBA question box .. but the code on how to udate the field ...

Any suggestions ? :)
 
Could you use a check box instead?

Ken
 
KenHigg said:
Could you use a check box instead?

Ken

not really, this is an option i had considered tho.
 
In that case something like the following might work in the on click event of the button:

Code:
me!myTextBoxName = "Yes"

or

Code:
me!myTextBoxName = "No"

Or you could do something like:

Code:
If me!myTextBoxName = "No"
 me!myTextBoxName = "Yes"
Else
 me!myTextBoxName = "No"
End If
Ken
 
Last edited:

Users who are viewing this thread

Back
Top Bottom