B
Barry G. Sumpter
Hi all,
I'm using the following article as a base for my application
to print preview reports:
HOW TO: Use Automation to Print Microsoft Access Reports in Access 2000
http://support.microsoft.com/?id=210132
Specifically I'm using the Run-Time Version of Microsoft Access.
To be able to pass parameters to Reports I must retrieve the Record Source
for the report
and change the PARAMATERS clause like:
PARAMETERS rptCriteria TEXT = (No Report Criteria);
Select * from tblCompanys;
to
PARAMETERS rptCriteria TEXT = 'Company: Microsoft';
Select * from tblCompanys;
To do this I MUST open the report in DESIGN mode NOT PREVIEW.
And since I'm using the Run-Time Version of Microsoft Access
I get a message on:
objAccess.DoCmd.OpenReport strRptName, acDesign, strFilter, strWhere
'You do not have exclusive access to the database at this time.
If you proceed to make changes you may not be able to save them'
Does anyone know how to suppress this message?
Preferably with a commandline argument like /silent when I shell to the
Run-Time Version of Microsoft Access.
I'm using the following article as a base for my application
to print preview reports:
HOW TO: Use Automation to Print Microsoft Access Reports in Access 2000
http://support.microsoft.com/?id=210132
Specifically I'm using the Run-Time Version of Microsoft Access.
To be able to pass parameters to Reports I must retrieve the Record Source
for the report
and change the PARAMATERS clause like:
PARAMETERS rptCriteria TEXT = (No Report Criteria);
Select * from tblCompanys;
to
PARAMETERS rptCriteria TEXT = 'Company: Microsoft';
Select * from tblCompanys;
To do this I MUST open the report in DESIGN mode NOT PREVIEW.
And since I'm using the Run-Time Version of Microsoft Access
I get a message on:
objAccess.DoCmd.OpenReport strRptName, acDesign, strFilter, strWhere
'You do not have exclusive access to the database at this time.
If you proceed to make changes you may not be able to save them'
Does anyone know how to suppress this message?
Preferably with a commandline argument like /silent when I shell to the
Run-Time Version of Microsoft Access.