P
Please Help
Hi all,
I have a combo box, a text box (a date field) and a check box in the Record
Source of a form. Both combo box and text box are on the form and the check
box field is not on the form.
What I like to do is I like to write a code to automatically populate
today's date in the text box and check the box after a user has selected a
value from the combo box. If, for some reason, the user removes the value
from the combox box, the text box will not be populated and the check box
will not be checked for that record.
So I have tried the following code in the BeforeUpdate, and it's not working:
if Me.[combobox] <> null then
me.[textbox].value = now()
me.[checkbox] = "Yes"
end if
Please help. Thanks.
I have a combo box, a text box (a date field) and a check box in the Record
Source of a form. Both combo box and text box are on the form and the check
box field is not on the form.
What I like to do is I like to write a code to automatically populate
today's date in the text box and check the box after a user has selected a
value from the combo box. If, for some reason, the user removes the value
from the combox box, the text box will not be populated and the check box
will not be checked for that record.
So I have tried the following code in the BeforeUpdate, and it's not working:
if Me.[combobox] <> null then
me.[textbox].value = now()
me.[checkbox] = "Yes"
end if
Please help. Thanks.