penfold1992
Registered User.
- Local time
- Today, 13:30
- Joined
- Nov 22, 2012
- Messages
- 169
to test my database I am purposely making things fail some tests that I have in vba in order to get some of the error messages to pop up but I wasnt expecting this one...
"Invalid use of Null"
it appears somewhere here:
because I get the message after the message box "Completion date can not be before authorised date"
why do I get this message?
"Invalid use of Null"
it appears somewhere here:
Code:
nDateDiff = intervaldate(strDateComplete, strDateReceived)
If (nDateDiff < 0) Then
MsgBox ("Completion date can not be before date received.")
strDateComp = Null
strDateComplete = "NULL"
InsertFlag = False
End If
nDate2Diff = TestDates(strDateComp, strAuthourisedDateTime)
If (nDate2Diff >= 0) Then
MsgBox ("Completion date can not be before Authorised Date.")
strDateComp = Null
strDateComplete = "NULL"
InsertFlag = False
End If
End If
because I get the message after the message box "Completion date can not be before authorised date"
why do I get this message?