N
Nanette
I've been trying to change a record source for a report. Not sure if I'm on
the right track.
I have 3 cascading combo boxes on a form that are used to fill in the
subform. I need the report to use those combo boxes to determine what items
will be chosen to be seen on a report.
Private Sub Report_Open(Cancel As Integer)
Me.RecordSource = "SELECT * FROM LineItem WHERE " & _
"RFQNo = " & Chr(39) & Me![RFQ Selection].cboRFQ & Chr(39) & _
" and Change = " & Chr(39) & Me![RFQ Selection].cboChange & Chr(39) & _
" and LineItem = " & Chr(39) & Me![RFQ Selection].cboLine & Chr(39)
End Sub
My most recent error message was: can't find [RFQ Selection]
Any suggestions?
the right track.
I have 3 cascading combo boxes on a form that are used to fill in the
subform. I need the report to use those combo boxes to determine what items
will be chosen to be seen on a report.
Private Sub Report_Open(Cancel As Integer)
Me.RecordSource = "SELECT * FROM LineItem WHERE " & _
"RFQNo = " & Chr(39) & Me![RFQ Selection].cboRFQ & Chr(39) & _
" and Change = " & Chr(39) & Me![RFQ Selection].cboChange & Chr(39) & _
" and LineItem = " & Chr(39) & Me![RFQ Selection].cboLine & Chr(39)
End Sub
My most recent error message was: can't find [RFQ Selection]
Any suggestions?