Hi, I am really new to VB and I have been tasked with modifying an existing Access application to basically print batches of bill of ladings.
I have the print working when I call the report directly like:
DoCmd.OpenReport "Bil OF Lading",, WhereCondition:=sWhere
but there is a macro as part of the original application that does a bunch of other required stuff when a bol prints beyond just printing and I have been trying to run that macro in replace of the DoCmd.OpenReport.
I have tried DoCmd.RunMacro "print_one_bl", WhereCondition:=sWhere but it does not like the WhereCondition clause. Is there any way to accomplish this?
Please see attached link for detail.
Thanks,
Charlie
I have the print working when I call the report directly like:
DoCmd.OpenReport "Bil OF Lading",, WhereCondition:=sWhere
but there is a macro as part of the original application that does a bunch of other required stuff when a bol prints beyond just printing and I have been trying to run that macro in replace of the DoCmd.OpenReport.
I have tried DoCmd.RunMacro "print_one_bl", WhereCondition:=sWhere but it does not like the WhereCondition clause. Is there any way to accomplish this?
Please see attached link for detail.
Thanks,
Charlie