Type Mismatch using DLookUp

stampr18

Registered User.
Local time
Today, 10:32
Joined
Jan 5, 2007
Messages
23
I am using a dlookup to lookup the product id when the manufacturer and product in the form matches the manufacturer and product in the table. It works fine with just the manufacturer. The type mismatch comes up once I add the And "[Product] part of the code.

Me!ProductID = DLookup("[ProductID]", "TBLProduct", "[Manufacturer]= [FORMS]![FRMORDER].[FRMORDERSUBFORM]!Manufacturer" And "[Product]= [FORMS]![FRMORDER].[FRMORDERSUBFORM]!Product")
 

Users who are viewing this thread

Back
Top Bottom