G
Guest
I have a subform that contains product orders. I want to look up the price
in a Products table. Item-Name is the key in the products table and is a
text field.
Here is the code I am using in the afterupdate event when a user selects
item-name from a combo box control in the orders subform:
Me!Price = DLookup("Price", "Products", "Item-Name='" & Me![Item-Name] & "'")
I keep getting an error message :
Run-time error '2001' You canceled the previous operation
What am I doing wrong here?
Thanks for any help you can give me!
Meryl
in a Products table. Item-Name is the key in the products table and is a
text field.
Here is the code I am using in the afterupdate event when a user selects
item-name from a combo box control in the orders subform:
Me!Price = DLookup("Price", "Products", "Item-Name='" & Me![Item-Name] & "'")
I keep getting an error message :
Run-time error '2001' You canceled the previous operation
What am I doing wrong here?
Thanks for any help you can give me!
Meryl