Hi
I have this code set up in order to close one form and open another form, at the correct record:
Private Sub FirstName_DblClick(Cancel As Integer)
Dim stlinkcriteria As String
Dim stdocname As String
stlinkcriteria = "[ContactID]=" & Me![ContactID]
stdocname = "frmContacts"
DoCmd.OpenForm stdocname, , , stlinkcriteria
End Sub
However, when I run it it can't find the ContactID field on the form, even though it is there and is populated.
Anyone know why this is?
Thanks
Brad
I have this code set up in order to close one form and open another form, at the correct record:
Private Sub FirstName_DblClick(Cancel As Integer)
Dim stlinkcriteria As String
Dim stdocname As String
stlinkcriteria = "[ContactID]=" & Me![ContactID]
stdocname = "frmContacts"
DoCmd.OpenForm stdocname, , , stlinkcriteria
End Sub
However, when I run it it can't find the ContactID field on the form, even though it is there and is populated.
Anyone know why this is?
Thanks
Brad