I am using DLookup to fill in a form. If I enter a value in a como box that is not in the list, DLookup returns the same record from the table everytime. If I enter a value that is in the list it returns the correct information from the table. I can't figure out why it won't return a null value for a record that is not in the list. I think that is what it should do.
Here is a copy of one line:
!txtJobName = DLookup("[strJobName]", "tblJobInformation", "'[strJobNumber]='" & "'" & JobNumber & "'")
The JobNumber is text.
I am going nuts trying to figure this out. It was returning the same record everytime until I deleted that record from the table. But that is a question for some other time.
Thanks for the help.
Greg
Here is a copy of one line:
!txtJobName = DLookup("[strJobName]", "tblJobInformation", "'[strJobNumber]='" & "'" & JobNumber & "'")
The JobNumber is text.
I am going nuts trying to figure this out. It was returning the same record everytime until I deleted that record from the table. But that is a question for some other time.
Thanks for the help.
Greg