Hello all,
It's embarrassing, but I've been searching for weeks and cannot solve!
Access 2003. I've a form: "Xpresearch". It has a textbox: Text3. In this, I scan the serial number of the product e.g. HH01234X/12. The serial number is the primary key in the table "Sheet 1". Using the event properties of Text3, I want to code, to open a form "Xupdate" which contains textboxes displaying the record relating to the relative product. I have bound Text3 to Sheet1.Serial Number and am playing with the code;
....and lots of similar variations. This one won't work, and gives runtime error 2481 'The object [Serial Number]=' HH01234X/12' ' isn't open'Code:Private Sub Text3_AfterUpdate() DoCmd.OpenForm "Xupdate" DoCmd.GoToRecord acDataForm, "[Serial Number] = ' " & Me.[Text3] & " ' " End Sub
Can anyone see what I am doing wrong?
Many thanks,
Mattbro