aron.ridgway
Registered User.
- Local time
- Today, 12:52
- Joined
- Apr 1, 2014
- Messages
- 148
Hi there i am trying to do a Dlookup in an textbox which is looking at a query that isnt a bound source of the form. my code is
Im looking for the field Emailaddress in the query, matching the supplier Primary key to the Form Supplier Foreign key.
Email address is hyperlink, the PK and fk are short text. I've used a simular Dlookup before but having no luck with this one?
Am i doing anything obviously wrong?
thanks
Code:
=DLookUp("[EmailAddress]","[qrySupplierEmail]","[SupplierPK]=" & [Forms]![frmPurchaseEntry]![SupplierFK])
Email address is hyperlink, the PK and fk are short text. I've used a simular Dlookup before but having no luck with this one?
Am i doing anything obviously wrong?
thanks