I have a form on which the user can lookup a specific member using a combo box. Due to many members having the same name, I want the user to ensure they have the correct member before proceeding. Once they've confirmed the member, I want them to choose among three forms, via a command button, carrying the ID of the member forward to the selected form. The below code works as a filter if in edit mode, however when I open the form as a new record it does not insert the ID into the field. It will open the form, focus on the appropriate field, but enter nothing.
Any help is appreciated as I'm obviously overlooking something. TIA!
Private Sub Cash_Donation_Click()
Dim strForm As String, strWhere As String
strForm = "frmMembersPayments"
strWhere = "lngMemberID = """ & Me!lngMemberID & """"
DoCmd.OpenForm FormName:=strForm, wherecondition:=strWhere, Datamode:=acFormAdd
End Sub
Any help is appreciated as I'm obviously overlooking something. TIA!
Private Sub Cash_Donation_Click()
Dim strForm As String, strWhere As String
strForm = "frmMembersPayments"
strWhere = "lngMemberID = """ & Me!lngMemberID & """"
DoCmd.OpenForm FormName:=strForm, wherecondition:=strWhere, Datamode:=acFormAdd
End Sub