R
Rohit Thomas
Hello all,
I am trying to creating reports on the fly using criteria
that's specified in several comboxes. I have been able to
get the code to work when I only specify one combobox for
the filter. Can anyone show me the syntax to specify two
or more comboboxes in a filter.
Here's the code that works:
Dim stLinkCriteria As String
Dim stWhere As String
stDocName = "rptTellerFifty&UnderDetail"
stWhere = "FileDate = Forms!frmPrintPreviewReports!CmbDate"
DoCmd.OpenReport stDocName, acNormal, , stWhere
Here's what I need help with...syntax for combining 1 & 2
1)stWhere = "FileDate = Forms!frmPrintPreviewReports!
CmbDate"
2)stWhere = "BranchName = Forms!frmPrintPreviewReports!
CmbBranch"
Thanks for the help in advance,
Rohit Thomas
I am trying to creating reports on the fly using criteria
that's specified in several comboxes. I have been able to
get the code to work when I only specify one combobox for
the filter. Can anyone show me the syntax to specify two
or more comboboxes in a filter.
Here's the code that works:
Dim stLinkCriteria As String
Dim stWhere As String
stDocName = "rptTellerFifty&UnderDetail"
stWhere = "FileDate = Forms!frmPrintPreviewReports!CmbDate"
DoCmd.OpenReport stDocName, acNormal, , stWhere
Here's what I need help with...syntax for combining 1 & 2
1)stWhere = "FileDate = Forms!frmPrintPreviewReports!
CmbDate"
2)stWhere = "BranchName = Forms!frmPrintPreviewReports!
CmbBranch"
Thanks for the help in advance,
Rohit Thomas