G
Guest
I have several date/time fields in a table that I am using in a form for time
value. Behind that I have validation code in the before update event on each
field that tries to assign the time value using the timevalue function
I have tried
amIN = TimeValue(Me.MorningIn.Value)
and
if isnull(TimeValue(Me.MorningIn.Value)) then
....
else
....
endif
etc...
Howver, either way, if the field value is null, I get an error "Invalid us
of Null", but when looking at the help for timevalue it states that it will
return null if the data in the field is null. How can I write the code so
that I can put into a variable the time value of the field or know if the
field value is null?
value. Behind that I have validation code in the before update event on each
field that tries to assign the time value using the timevalue function
I have tried
amIN = TimeValue(Me.MorningIn.Value)
and
if isnull(TimeValue(Me.MorningIn.Value)) then
....
else
....
endif
etc...
Howver, either way, if the field value is null, I get an error "Invalid us
of Null", but when looking at the help for timevalue it states that it will
return null if the data in the field is null. How can I write the code so
that I can put into a variable the time value of the field or know if the
field value is null?