Richard Horne
Member
- Local time
- Today, 03:07
- Joined
- Oct 15, 2020
- Messages
- 55
I have a form whose recordsource is updated on the AfterUpdate event of a control on the form. A query is built according to the value chosen in the form and the form's recordsource requeried accordingly.
One of the fields returned by the query is a date field (promised_date). A bound control called promised_date exists on the form to hold the value of this field.
When this date is NULL I get an error message stating:
The value you entered isn't valid for this field.
I have tried the following to stop this and but still get the same error:
I have checked the database table and the field allows NULL and NULL is definitely stored when a date hasn't yet been set. What else can I do to recognise that the date field is NULL?
Thanks in advance.
One of the fields returned by the query is a date field (promised_date). A bound control called promised_date exists on the form to hold the value of this field.
When this date is NULL I get an error message stating:
The value you entered isn't valid for this field.
I have tried the following to stop this and but still get the same error:
Code:
If IsNull(Me.promised_date) then
'Do something
else
'Do something else
End If
I have checked the database table and the field allows NULL and NULL is definitely stored when a date hasn't yet been set. What else can I do to recognise that the date field is NULL?
Thanks in advance.
Last edited: