daninthemix
Registered User.
- Local time
- Today, 02:26
- Joined
- Nov 25, 2005
- Messages
- 41
I have the following code:
...but the problem with this is it finds a match even based on partial data. E.G. if I have a serial number CK99901, and someone enters CK999... then the above dlookup finds a match.
How do you force dlookup to only match the entire field only?
Code:
Asset = DLookup("[Serial Number]", "Serials", "[Serial Number]=" & "'" & Me![Serial Number] & "'")
...but the problem with this is it finds a match even based on partial data. E.G. if I have a serial number CK99901, and someone enters CK999... then the above dlookup finds a match.
How do you force dlookup to only match the entire field only?