rjohnstone1
Registered User.
- Local time
- Today, 12:32
- Joined
- Jun 6, 2000
- Messages
- 17
I have a button on my form to open a report
with some criteria (combo box, dates)
I am trying to build a sql statement so the
report will be filtered between two dates
and having criteria of my combo box. I know the dates work but the Cost Centre Name does not. Here is what i have. Any help would be appreciated.
Thanks Ryan J
DoCmd.OpenReport Report_Name, Report_Type, , "[WoDate] Between #" & Format(Me.StartDate, "mm\/dd\/yyyy") & "# And #" & Format(Me.EndDate, "mm\/dd\/yyyy") & "# And [WoCostCentreName] = [FrmWhatDates].forms![CostCenterCombo]"
with some criteria (combo box, dates)
I am trying to build a sql statement so the
report will be filtered between two dates
and having criteria of my combo box. I know the dates work but the Cost Centre Name does not. Here is what i have. Any help would be appreciated.
Thanks Ryan J
DoCmd.OpenReport Report_Name, Report_Type, , "[WoDate] Between #" & Format(Me.StartDate, "mm\/dd\/yyyy") & "# And #" & Format(Me.EndDate, "mm\/dd\/yyyy") & "# And [WoCostCentreName] = [FrmWhatDates].forms![CostCenterCombo]"