View Single Post
  #1  
Old May 18th, 2004, 05:51 PM
Peter Afonin
external usenet poster
 
Posts: n/a
Default Cannot use OpenArgs in Access 2000

Hello:

I created an Access application that uses OpenArgs:

DoCmd.OpenReport stDocName, acPreview, , , , "1"

I created it in Access 2003 (but in Access 2000 format), and it works well.
However, people in my company are using Access 2000, and this doesn't work
on their PCs. They are getting a compile error ("Wrong number of arguments
or method is not supported").

I've checked the references - they are identical to mine, except that they
have Access 9, and I have Access 11. I know that Access 2000 supports
OpenArgs, I verified this in Help. But it even doesn't give this option.
When I type DoCmd.OpenReport, I see this:

OpenReport(ReportName, View as AcView=acVewNormal, [FilterName],
[WhereCondition])

That's all.

On my PC I see:

OpenReport(ReportName, View as AcView=acVewNormal, [FilterName],
[WhereCondition],
WindowMode as AcWindowMode=acWindowNormal, [OpenArgs])

What could be wrong here?

I would appreciate your help.

Thank you,

--
Peter Afonin