In this code Dmax is executed twice (when all is well). How can I make it so
that I only have to put de DMAX line one time in the code? Hope this is
clear.
Dim d as Date
If IsNull(DMax("[Date_request]", "tblRequest ", "[Sender] = """ &
Forms![fTest]![Sender] & """")) Then
Exit Sub
Else
d = DMax("[Datum_request]", "tblRequest ", "[Sender] = """ &
Forms![fTest]![Sender] & """")
endif
Thank you very much for any help.
Lars Brownie
that I only have to put de DMAX line one time in the code? Hope this is
clear.
Dim d as Date
If IsNull(DMax("[Date_request]", "tblRequest ", "[Sender] = """ &
Forms![fTest]![Sender] & """")) Then
Exit Sub
Else
d = DMax("[Datum_request]", "tblRequest ", "[Sender] = """ &
Forms![fTest]![Sender] & """")
endif
Thank you very much for any help.
Lars Brownie
Comment