ted.martin
Registered User.
- Local time
- Today, 03:24
- Joined
- Sep 24, 2004
- Messages
- 743
I would like to replace the expression in a DLOOKUP with a text based variable.
For example:
REPLACE
If IsNull(DLookup("", "Contacts", "ContactID = 3")) = True Then .....
With
strExp = "DLookup('[eMail]', 'Contacts', 'ContactID = 3')"
If IsNull(strExp) = True Then .....
Of course this doesn't work as the variable strExp is not null and so does not process what is within the value.
Any thoughts would be appreciated.
Thanks
For example:
REPLACE
If IsNull(DLookup("", "Contacts", "ContactID = 3")) = True Then .....
With
strExp = "DLookup('[eMail]', 'Contacts', 'ContactID = 3')"
If IsNull(strExp) = True Then .....
Of course this doesn't work as the variable strExp is not null and so does not process what is within the value.
Any thoughts would be appreciated.
Thanks

Last edited: