I am trying to create a click button event to open a form based on a parameter but keep getting this error Run-Time error '2465' Microsoft access can't find the field '|1' referred to in your expression. the code I'm using is
Private Sub Command2_Click()
DoCmd.OpenForm [Visit Data], , , "[Branch code] = '" & Me.Combo0 & "'"
End Sub
Visit data is the form - it contains the space in the name (someone else created this database not me) and Branch code is a text field which also has the space in the name of the field
Any ideas?
Thanks
J