Joe4
MrExcel MVP, Junior Admin
- Joined
- Aug 1, 2002
- Messages
- 73,431
- Office Version
- 365
- Platform
- Windows
I have written some VBA code my computer in Access 2002. Essentially, I am simply attempting to open a Report in Print Preview mode. This is my code:
DoCmd.OpenReport "rpt Rolodex", acViewPreview, "", "", acNormal
Someone using Access 2000 or Access 97 get errors when this code is run, and it highlights this line.
Does this command not work on earlier versions? Could someone tell me what code to use to open forms in Access 2000/97?
Thanks.
DoCmd.OpenReport "rpt Rolodex", acViewPreview, "", "", acNormal
Someone using Access 2000 or Access 97 get errors when this code is run, and it highlights this line.
Does this command not work on earlier versions? Could someone tell me what code to use to open forms in Access 2000/97?
Thanks.