R
ReidarT
I am trying to add records to a table with a date field (access-database)
where some of the records have a date and some haven't.
I use
dim dteReturDate as Date
If IsDate(RsMem("Returdato").Value) Then
dteReturdato = RsMem("Returdato").Value
Else
dteReturdato = Null
End If
..addnew
RsMem2.AddNew
RsMem2!Returdato = dteReturdato
..Update
Problem is the Null and the debugging stops at the RsMem2!Returdato-line
regards
reidarT
where some of the records have a date and some haven't.
I use
dim dteReturDate as Date
If IsDate(RsMem("Returdato").Value) Then
dteReturdato = RsMem("Returdato").Value
Else
dteReturdato = Null
End If
..addnew
RsMem2.AddNew
RsMem2!Returdato = dteReturdato
..Update
Problem is the Null and the debugging stops at the RsMem2!Returdato-line
regards
reidarT