Samantha
still learning...
- Local time
- Today, 15:29
- Joined
- Jul 12, 2012
- Messages
- 187
Hi All,
I seem to be having a difficult time getting my form to filter on opening. I have tired several variations and can seem to get it any help is greatly appreciated.
I have one form entitled frmProposalDetails on this form there is a field named [Contact] then there is also a button cmdCheckContact. When you press cmdCheckContact it opens frmContactCheck, on this form is the second field to be matched [ContactName]. The following code is attached to frmContactCheck. Both fields being matched are text.
Thanks!
Samantha
I seem to be having a difficult time getting my form to filter on opening. I have tired several variations and can seem to get it any help is greatly appreciated.
I have one form entitled frmProposalDetails on this form there is a field named [Contact] then there is also a button cmdCheckContact. When you press cmdCheckContact it opens frmContactCheck, on this form is the second field to be matched [ContactName]. The following code is attached to frmContactCheck. Both fields being matched are text.
Code:
Private Sub Form_Load()
On Error GoTo Form_Load_Err
DoCmd.ApplyFilter , "ContactName = '" & tblProposals.Contact & "'"
Form_Load_Exit:
Exit Sub
Form_Load_Err:
MsgBox Error$
Resume Form_Load_Exit
End Sub
Thanks!
Samantha