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!

Clearing Checkbox when Entering Text

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I need the command for the event procedure for "After Update" in the text box. I want it so when you enter text into the text box, the check box automatically clears. I tried

me!checkbox = False

but it's not working. I get this error saying I can't assign a value to this object.

Any ideas?
 
Try this:

me.checkbox = 0

A yes/no field stores a yes as -1 and a no as 0.

Jennifer
 
No, I tried it, it says I can't assign a value to the object. Any other ideas?
 
Can you send me your database or at least your form so I can take a look at it?

plumj@calib.com

Jennifer
 
is your form bound to a query that is read only? Otherwise I don't see how it doesn't work. how about trying to set it focus first? "The greatest risk, is not taking one."
 
Have you tried just reffering to the name of the text box and setting it = to false.

forms!formname!checkboxname = False

or if its in the current scope

checkboxname = false

Just a thought.

[bigears]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top