Checkboxes

Carrie

Registered User.
Local time
Today, 00:36
Joined
Jan 8, 2003
Messages
36
Hi

I was wondering if someone could help.

I have a check box field and when I click yes for this field I would like another field to update with the following data "interviewing".

Does anyone know how to do this as I'm a bit stumped.

Thanks in advance
 
carrie,

Use the BeforeUpdate event:

If Me.cbxMyCheckBox = -1 Then
Me.txtOtherField = "Interviewing"
End If

The -1 means True or Checked
A 0 would mean False or Unchecked

Wayne
 
For simplicity's sake, you don't have to use -1 and 0. Just use =True or =False and it will work just as well.
 
You need to take this one step further if you want the variable to be displayed when you scroll to a different record. You'll need the same code in the OnCurrent event.
 
You could of course achieve the same result without any code, just set the control source of the textbox to =Iif([MyField]=True,"Interviewing","Something Else")
 

Users who are viewing this thread

Back
Top Bottom