hhzyousafi
Registered User.
- Local time
- Today, 13:47
- Joined
- Nov 18, 2013
- Messages
- 74
I have searched this forum to make sure my syntax was correct before posting; however despite, in my opinion, having correct syntax I am unable to open a form based on a specific record. I have a form called "frmBasicEmployeeInformation". I have another form, the form is called "frmBasicEmployeeInformationSearch", that is based on a query that is based on the table "tblBasicEmployeeInformation". The form "frmBasicEmployeeInformation" is also based on the table "tblBasicEmployeeInformation".
The form "frmBasicEmployeeInformation" has a field called txttblBasicEmployeeInformationID and the form "frmBasicEmployeeInformationSearch" has a field called "tblBasicEmployeeInformationID". Here is the syntax I am using on the double click event on the form "frmBasicEmployeeInformationSearch":
I have tried removing the ".value" in the last part of the code; however that has done nothing for me either. The form has opened; however there is no data showing in the form. What am I missing here?
The form "frmBasicEmployeeInformation" has a field called txttblBasicEmployeeInformationID and the form "frmBasicEmployeeInformationSearch" has a field called "tblBasicEmployeeInformationID". Here is the syntax I am using on the double click event on the form "frmBasicEmployeeInformationSearch":
Private Sub FirstName_DblClick(Cancel As Integer)
DoCmd.OpenForm "frmBasicEmployeeInformation", acNormal, , "txttblBasicEmployeeInformationID=" & Me.tblBasicEmployeeInformationID.Value
End Sub
DoCmd.OpenForm "frmBasicEmployeeInformation", acNormal, , "txttblBasicEmployeeInformationID=" & Me.tblBasicEmployeeInformationID.Value
End Sub
I have tried removing the ".value" in the last part of the code; however that has done nothing for me either. The form has opened; however there is no data showing in the form. What am I missing here?