How to get value of OpenArgs in report?

  • Thread starter Thread starter Neil
  • Start date Start date
N

Neil

Hello:

I am using Access 2003 as a front-end for a database in an SQLServer
2000 database.

When I am calling a report, I use this line in the VBA code:

DoCmd.OpenReport "rptBilling_Details_Specific", acViewPreview, , ,
acWindowNormal, intBillId

intBillId is an integer value that I want to pass into the report
in the OpenArgs parameter.

In the report code, I set the InputParameters property to:
@billId int =
[Reports]![rptBilling_Details_Specific]![OpenArgs].[Value]

When I launch the report, I get a popup asking for the value of
[Reports]![rptBilling_Details_Specific]![OpenArgs].[Value]

If I enter it, everything works fine, but I want it to automatically
pull the value from the OpenArgs parameter instead of asking the
user for it.

Any ideas what is wrong?

Thanks,
Neil
 
Use Me.OpenArgs to refer to the property from within the report.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

OpenReport & OpenArgs 2
Access OpenArgs in Access 2010 failing 0
OpenArgs 4
OpenArgs and reports 3
openargs in sorting and grouping 5
OpenArgs Timing 6
Using OutputTo with a report that has OpenArgs 1
wherecondition value 1

Back
Top