I've uploaded a database which is giving me trouble. It was a template someone downloaded and asked me to tweak. The form named Order Details Subform has a combo box control named ProductID. (I would have named it cboProductID, but oh well . . . )
Anyhoo, when I run the main form or the subform and click on product ID, the AfterUpdate event fires from a macro called SetUnitPrice in the group of macros called "Add an Order and Details Macros." It's using the DLookup function to find the UnitPrice from the Products table. When I click on a product, I then get an error message that says Missing Operator.
Can someone help and see if there is anything wrong with the DLookup syntax? I think it's OK, but now am beating my head against the wall.
Anyhoo, when I run the main form or the subform and click on product ID, the AfterUpdate event fires from a macro called SetUnitPrice in the group of macros called "Add an Order and Details Macros." It's using the DLookup function to find the UnitPrice from the Products table. When I click on a product, I then get an error message that says Missing Operator.
Can someone help and see if there is anything wrong with the DLookup syntax? I think it's OK, but now am beating my head against the wall.