Hi,
I am using Access 2003 ADP with a SQL Sever 2000 BE.
I am trying to set the FilterName of a report at runtime, so that I can use the same report with different data.
strQryName = "qryJournalMailingSheet"
strDocName = "rptIssuesToSend"
DoCmd.OpenReport strDocName, acViewPreview, strQryName
I have the code above. But it doesn't work.
What am I doing wrong and how do I solve it?
Best regards,
Ian
I am using Access 2003 ADP with a SQL Sever 2000 BE.
I am trying to set the FilterName of a report at runtime, so that I can use the same report with different data.
strQryName = "qryJournalMailingSheet"
strDocName = "rptIssuesToSend"
DoCmd.OpenReport strDocName, acViewPreview, strQryName
I have the code above. But it doesn't work.
What am I doing wrong and how do I solve it?
Best regards,
Ian