Using textbox to update another text box in MS Access

92 Views Asked by At

I am trying to update a textbox#2 based on the value in Textbox#1. The value in the textbox#1 is taken from from a string using " Mid([ScantheCode],1,10)" from ScantheCode box. I have tried couple of things but I am getting #error or #name.

I am using

=(DLookUp("ProductName","List","ProductN=" & [Textbox#1] & "'"))

Please help me find the solution for it.

Thank you, regards, Rohan

1

There are 1 best solutions below

2
Gustav On

ProductN is probably text, so try inserting the missing quote:

=DLookUp("ProductName","List","ProductN = '" & [Textbox#1] & "'")