G
Guest
I have a form I call QueryForm. On this form is a combo box that list all the
customers in the database. I need to open another form based on the selected
cutomer of that combo box. The form I am attempting to open is called
Query_by_Customer_Weekly_Form. Here is the code I am trying to use
(unsucessfully).
Private Sub SQLStatement1()
Dim strPara As String
strwhere = "[Query_by_Customer]![Customer]" = cmbCustName
DoCmd.OpenForm "[Query_by_Customer_Weekly_Form]", acViewNormal, , ,
strPara
End Sub
The Query_by_Customer_Weekly_Form pulls its data from the table via a query
called Query_by_Customer. Depending on what value is in the combo box
cmbCustName I need to populate the Query_by_Customer_Weekly_Form with all
records that contain that clients name. Any help is greatly appreciated.
C_Ascheman
customers in the database. I need to open another form based on the selected
cutomer of that combo box. The form I am attempting to open is called
Query_by_Customer_Weekly_Form. Here is the code I am trying to use
(unsucessfully).
Private Sub SQLStatement1()
Dim strPara As String
strwhere = "[Query_by_Customer]![Customer]" = cmbCustName
DoCmd.OpenForm "[Query_by_Customer_Weekly_Form]", acViewNormal, , ,
strPara
End Sub
The Query_by_Customer_Weekly_Form pulls its data from the table via a query
called Query_by_Customer. Depending on what value is in the combo box
cmbCustName I need to populate the Query_by_Customer_Weekly_Form with all
records that contain that clients name. Any help is greatly appreciated.
C_Ascheman