Hi All,
I've been at this for a few days using several DLookUps. DLookUp is finding a record ID for a record not even in the table.
ReqNo = 23a21 and SPID = 11
ReqNo 23a21 doesn't even exist in the table
I cleared RQID beforehand to be sure nothing is in it
What am I doing wrong?
Code:
RQID = ""
RQID = DLookup("REQ_ID", "tSPEC_REQUIREMENT", "[REQ_NO] = '" & ReqNo & "' AND [SPEC_ID] = " & SPID)
I've been at this for a few days using several DLookUps. DLookUp is finding a record ID for a record not even in the table.
ReqNo = 23a21 and SPID = 11
ReqNo 23a21 doesn't even exist in the table
I cleared RQID beforehand to be sure nothing is in it
What am I doing wrong?
Code:
RQID = ""
RQID = DLookup("REQ_ID", "tSPEC_REQUIREMENT", "[REQ_NO] = '" & ReqNo & "' AND [SPEC_ID] = " & SPID)