R
Rudi
Hi,
I have used the statement below to find the unique "ID" for a record in a
table that has a certain name in it's "Names" field and a certain date in
it's "Date" field. It worked great for a while, but recently it gives me the
error below, if the Date and Name isn't found in the table. According to the
DLookup function, it should return a Null. Any ideas what the problem might
be? TempID is declared as a Long.
TempID = DLookup("ID", "Timesheet", "[Names] = '" & CurrentUser() & "' And
[Date] = #" & mDate & "#")
Error ->
Run-time error '94:
Invalid use of Null
I have used the statement below to find the unique "ID" for a record in a
table that has a certain name in it's "Names" field and a certain date in
it's "Date" field. It worked great for a while, but recently it gives me the
error below, if the Date and Name isn't found in the table. According to the
DLookup function, it should return a Null. Any ideas what the problem might
be? TempID is declared as a Long.
TempID = DLookup("ID", "Timesheet", "[Names] = '" & CurrentUser() & "' And
[Date] = #" & mDate & "#")
Error ->
Run-time error '94:
Invalid use of Null