Link to home
Create AccountLog in
Avatar of DelphiNube
DelphiNube

asked on

Access Question

The issue that I am having with the attached database is that I am trying to use a DLookup string. I am using the following string: Cost1 = DLookup ("Retail_Price", ProductsT, "Product=" & Forms![frmReceipt]![txtPurchase1]) I am getting a #name? error message when I trying to use the form.
Sales.accdb
ASKER CERTIFIED SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
try this:

Cost1 = DLookup ("Retail_Price", "ProductsT", "Product=" & chr(34) & Forms![frmReceipt]![txtPurchase1]) & chr(34)