J
JimAA
Bear with me, I'm really new to this. I'm setting up a form in Access 2003
where a user would select a start year and an end year to open a report based
on a query for sales during that range of years. I can't get the code to
work. This is the code that I've attached to a command button on the form:
DoCmd.OpenReport "Jobs by Sales Rep (all)1", acViewPreview, , "[Fiscal Year]
Thanks,
Jim
where a user would select a start year and an end year to open a report based
on a query for sales during that range of years. I can't get the code to
work. This is the code that I've attached to a command button on the form:
DoCmd.OpenReport "Jobs by Sales Rep (all)1", acViewPreview, , "[Fiscal Year]
What is wrong with it?=#" & Me.CboStartYear & "And <=#" & Me.CboEndYear & "#"
Thanks,
Jim