Hello all,
I've a form-‘Data Entry’ linked to a table. To allow users to examine suspected duplication, I have a query ‘PtSearch’ which feeds to a form ‘PtSearch’. If the user is concerned about duplication, they can enter the serial number in a box on the form ‘Data Entry’ which starts the ‘PtSearch’ query and opens the form ‘PtSearch’. If there is any duplication, the user can see the serial number and record number of these cases. I have a textbox called Text14 in the header of the ‘PtSearch’ form, and I want the user to be able to enter the record number of the case they want to examine, into this box. Using the AfterUpdate event, I want the code to close the PtSearch form and open the Data Entry form at the record number they entered. My coding for this is;
Code:
Private Sub Text14_AfterUpdate()
DoCmd.OpenForm "DataEntry", , , "Record Number = " & Me!Text14
DoCmd.Close acForm, "PatientSearch"
End Sub
……and it hangs up on the second line of code.... "Runtime error 3075 syntax error-missing operator in query expression Record Number = xxx." Can anybody tell me what I am doing wrong? Many thanks,
Mattbro451