I have a multi-version environment that uses Access 2000 and Access 2002. I have a form with a command button which generates a report and Outputs the data to an RTF file. The code works just fine in Access 2000 but it gives run time errors in Access 2002. Also note that the computers with Access 2000 are Win2k and the Computers with Access 2002 are WinXP. I was thinking it might have something to do with the object references in VB but I am not sure. Does anyone have any suggestions?
Code for command buttons OnClick event
DoCmd.OutputTo acOutputReport, "ReportName", acFormatRTF, "FileName.RTF", True
Error received
Run-Time error 2203
The dynamic-link library Commdlg faild: error code '0xffff'
Code for command buttons OnClick event
DoCmd.OutputTo acOutputReport, "ReportName", acFormatRTF, "FileName.RTF", True
Error received
Run-Time error 2203
The dynamic-link library Commdlg faild: error code '0xffff'