Thedon123
Registered User.
- Local time
- Today, 14:04
- Joined
- Sep 11, 2002
- Messages
- 98
I am trying to open this form so that it displays the criteria the user has selected.
The 2 criteria needed are C_Number and C_REP.
The problem is i can only get it to open with C-NUMBER criteria it does not take into account the C_rep criteria.
the code i used is below.
how do i get it to open the form searching both criterias?
Private Sub Cl_NUMBER_Click()
Dim ClmNoSearch As String
Dim stLinkCriteria As String
Dim ClmRepSearch As String
ClmNoSearch = Me!C_NUMBER
ClmRepSearch = Me!C_REP
DoCmd.OpenForm "Please Wait", acNormal, "", "", , acNormal
DoCmd.OpenForm "Mod C", acNormal, "ClmNoSearch" +"ClmRepSearch", , , acNormal
DoCmd.Close acForm, "Please Wait"
End Sub
The 2 criteria needed are C_Number and C_REP.
The problem is i can only get it to open with C-NUMBER criteria it does not take into account the C_rep criteria.
the code i used is below.
how do i get it to open the form searching both criterias?
Private Sub Cl_NUMBER_Click()
Dim ClmNoSearch As String
Dim stLinkCriteria As String
Dim ClmRepSearch As String
ClmNoSearch = Me!C_NUMBER
ClmRepSearch = Me!C_REP
DoCmd.OpenForm "Please Wait", acNormal, "", "", , acNormal
DoCmd.OpenForm "Mod C", acNormal, "ClmNoSearch" +"ClmRepSearch", , , acNormal
DoCmd.Close acForm, "Please Wait"
End Sub