Checkbox

Wallie

Registered User.
Local time
Today, 00:54
Joined
Mar 12, 2002
Messages
23
This doenst work the way i want:
Private Sub Form_Load()
If IsNull(Form_form.text1) Then
Form_form.chkb.Value = 1 'True doesnt work
Else
Form_form.chkb.Value = 0 ' False doenst work
End If
End Sub

When the form is opened i want to check if a textfield is empty(null) or not. If its empty do no check the checkbox; if not empty do check the checkbox.

Ideas ?

Thanx
 
You might need to put the code on current especially if you scroll through records and want to check each one.

The code should be something like

If Me.TextBox = Null then
me.TickBox = 1
else
me.Tickbox = 0
end if

not sure if you need to put "" in place of the word Null - I get confused about that

Col
 
Set the check box control source to=Iif([text1],False,True)
 

Users who are viewing this thread

Back
Top Bottom