checkbox + textbox

D

Dreamer

Hello to all!

I have in a Form, "1 text box (date)" and one "checkbox" and need the
following thing. That when a date in the text box is entered, it is
obligatory to mark the "checkbox" or that is marked automatically in the
best one of the cases.

Thanks for its aid!
 
J

Joan Wild

Dreamer said:
Hello to all!

I have in a Form, "1 text box (date)" and one "checkbox" and need the
following thing. That when a date in the text box is entered, it is
obligatory to mark the "checkbox" or that is marked automatically in the
best one of the cases.


In the AfterUpdate property for the textbox control, choose Event Procedure
and put

If IsNull(Me!NameOfTextBox) then
Me!NameOfCheckBox = false
Else
Me!NameOfCheckBox = true
End If
 
Top