B
Beccy Howard
As part of a module I have the following code:
The problem is when I run the code, I get an error message
of - Invalid use of NULL. this is to do with the
LastDNADate field having blank entries in it. How do I
get around this?
cendate = #8/31/2003#
bookdate = Right$(rkb![REFREQDATE], 2) & "/" & Mid$(rkb!
_[REFREQDATE], 5, 2) & "/" & Mid$(rkb![REFREQDATE], 3, 2)
dnadate = Right$(rkb![LastDNAdate], 2) & "/" & Mid$(rkb!
_[LastDNAdate], 5, 2) & "/" & Mid$(rkb![LastDNAdate], 3, 2)
dnadate2 = DateValue(dnadate)
cendate2 = DateValue(cendate)
bookdate2 = DateValue(bookdate)
If LastDNAdate = "" Then
waittime = (cendate2 - bookdate2)
Else
waittime = (cendate2 - lastdnadate2)
End If
The problem is when I run the code, I get an error message
of - Invalid use of NULL. this is to do with the
LastDNADate field having blank entries in it. How do I
get around this?
cendate = #8/31/2003#
bookdate = Right$(rkb![REFREQDATE], 2) & "/" & Mid$(rkb!
_[REFREQDATE], 5, 2) & "/" & Mid$(rkb![REFREQDATE], 3, 2)
dnadate = Right$(rkb![LastDNAdate], 2) & "/" & Mid$(rkb!
_[LastDNAdate], 5, 2) & "/" & Mid$(rkb![LastDNAdate], 3, 2)
dnadate2 = DateValue(dnadate)
cendate2 = DateValue(cendate)
bookdate2 = DateValue(bookdate)
If LastDNAdate = "" Then
waittime = (cendate2 - bookdate2)
Else
waittime = (cendate2 - lastdnadate2)
End If