RufussMcGee
Technical User
My form "frmNewContact" has a VBA code on open.
Dim varX As Variant
varX = DLookup("[ID]", "[tblCustomer List]", "[Bill-To Name] =" _
& Forms![frmNewContact]!txtMYCustomer)
In the table "tblCustomer List" ID is the primary key field and "Bill-to Name" is the text field.
This is the error I am getting...
Syntax error (missing operator) in query expression '[Bill-To Name]=Lane Supply
The company name is spelled right, I am at a lost of the error.
Thanks
Dim varX As Variant
varX = DLookup("[ID]", "[tblCustomer List]", "[Bill-To Name] =" _
& Forms![frmNewContact]!txtMYCustomer)
In the table "tblCustomer List" ID is the primary key field and "Bill-to Name" is the text field.
This is the error I am getting...
Syntax error (missing operator) in query expression '[Bill-To Name]=Lane Supply
The company name is spelled right, I am at a lost of the error.
Thanks