I have the following code which gives me a compile error Syntax error.
Private Sub txtRef_Desig_Enter()
=DLookup("[Part_Description]", "TblPartsList", "[txtRef_Desig]=Forms!frmInitialInspection![txtPart_Description]")
End Sub
My form Name is frmInitialInspection
The entry textbox on this form is txtRef_Desig
The display text box is named txtPart_Description
The Table the information is coming from is called TblPartsList
The field the information is based on is Ref_Designation
The field the information is based on is Part_Description.
Can someone help?
Private Sub txtRef_Desig_Enter()
=DLookup("[Part_Description]", "TblPartsList", "[txtRef_Desig]=Forms!frmInitialInspection![txtPart_Description]")
End Sub
My form Name is frmInitialInspection
The entry textbox on this form is txtRef_Desig
The display text box is named txtPart_Description
The Table the information is coming from is called TblPartsList
The field the information is based on is Ref_Designation
The field the information is based on is Part_Description.
Can someone help?