M
Mike P
I have a report that has the parameter [Enter_Date]. The report also calls a
query which has a parameter [Enter_Date]. When I run the report, a
parameter windows pops us, I enter the date, and the report runs fine.
However, I am now trying to run this report from a program, without prompting
the user. I am not have any luck and am wondering if I am entering the
syntax wrong as the window still pops up asking for the Enter_Date
paramenter. The syntax I am using is:
DoCmd.OpenReport "rptBuyReport", acViewPreview, , "[Enter_Date] = #3/3/2008#"
Any ideas here? I wish to run about 20 reports based on the same date and
this would let me automate the process and not require the user to
[Enter_Date] 20 times. I am using Access 2007 on XP.
Thanks,
Mike P
query which has a parameter [Enter_Date]. When I run the report, a
parameter windows pops us, I enter the date, and the report runs fine.
However, I am now trying to run this report from a program, without prompting
the user. I am not have any luck and am wondering if I am entering the
syntax wrong as the window still pops up asking for the Enter_Date
paramenter. The syntax I am using is:
DoCmd.OpenReport "rptBuyReport", acViewPreview, , "[Enter_Date] = #3/3/2008#"
Any ideas here? I wish to run about 20 reports based on the same date and
this would let me automate the process and not require the user to
[Enter_Date] 20 times. I am using Access 2007 on XP.
Thanks,
Mike P