S
Shelly
I have two fields. The first is a check box (SurveyRec)
and the second is a date field (SurveyDte). What I need
to have happen is when the user clicks on the check box,
check to see if the SurveyDte field is Null and if it is
stick in a date. Here's the code I tried in the OnClick
event of the checkbox...
If [SurveyDte] Is Null Then
[SurveyDte] = "4/1/2004"
Else
[SurveyDte] = Null
End If
Access doesn't like the first line. I tried = Null, and
it doesn't error out, but it also won't update the
field. I've also tried looking at the SurveyRec field,
and update based on it's value, but that won't update
correctly either.
Basically, I need to have the date added when they click
the checkbox to say yes, but if they uncheck it, I'll
need to clear out the SurveyDte field.
Thanks in advance.
Shelly
and the second is a date field (SurveyDte). What I need
to have happen is when the user clicks on the check box,
check to see if the SurveyDte field is Null and if it is
stick in a date. Here's the code I tried in the OnClick
event of the checkbox...
If [SurveyDte] Is Null Then
[SurveyDte] = "4/1/2004"
Else
[SurveyDte] = Null
End If
Access doesn't like the first line. I tried = Null, and
it doesn't error out, but it also won't update the
field. I've also tried looking at the SurveyRec field,
and update based on it's value, but that won't update
correctly either.
Basically, I need to have the date added when they click
the checkbox to say yes, but if they uncheck it, I'll
need to clear out the SurveyDte field.
Thanks in advance.
Shelly