Our company installed all new computers which now uses the XP Operating System. All our in-house databases were created in Access 97 before the new computers, and now have to all be converted to Access 2003 using the Access 2000 format. Our Staff uses Access 2000 runtime to be able to access the databases.
I have an Access db created in Access 97. It had to be converted to Access 2000. The database converted fine to Access 2000 with out any errors and runs and performs as it should using MS Access 2003 software. (in Access 2000 format). The problem is I have a code in this data base that will print a selected record using a report when you click the “Print Selected” button. It works for myself because I’m using the actual MS Access 2003 (in Access 2000 format) software to run it, but our staff who only use the 2000 runtime, get the “Microsoft Access for Windows has encountered a problem and needs to close”. Error as soon as they click the “Print Selected” button and it closes out the Database.
I can’t click on the error debug button and look at the code because there using 2000 runtime and it won’t recreate itself when I run the database because I use the actual MS Access software and it works fine. Does anyone know why this code will not work using Access 2000 Runtime?
This is the code for the “Print Selected” button:
Private Sub Command107_Click()
'print selected keyword
On Error GoTo Err_Print_Click
varFilter = "Keyword='" & apostrophe(lstKeyword) & "'"
varFilterOn = True
DoCmd.OpenReport "rptNotes"
Exit_Print_Click:
Exit Sub
Err_Print_Click:
MsgBox Err.Description
Resume Exit_Print_Click
End Sub
Thanks In advance
I have an Access db created in Access 97. It had to be converted to Access 2000. The database converted fine to Access 2000 with out any errors and runs and performs as it should using MS Access 2003 software. (in Access 2000 format). The problem is I have a code in this data base that will print a selected record using a report when you click the “Print Selected” button. It works for myself because I’m using the actual MS Access 2003 (in Access 2000 format) software to run it, but our staff who only use the 2000 runtime, get the “Microsoft Access for Windows has encountered a problem and needs to close”. Error as soon as they click the “Print Selected” button and it closes out the Database.
I can’t click on the error debug button and look at the code because there using 2000 runtime and it won’t recreate itself when I run the database because I use the actual MS Access software and it works fine. Does anyone know why this code will not work using Access 2000 Runtime?
This is the code for the “Print Selected” button:
Private Sub Command107_Click()
'print selected keyword
On Error GoTo Err_Print_Click
varFilter = "Keyword='" & apostrophe(lstKeyword) & "'"
varFilterOn = True
DoCmd.OpenReport "rptNotes"
Exit_Print_Click:
Exit Sub
Err_Print_Click:
MsgBox Err.Description
Resume Exit_Print_Click
End Sub
Thanks In advance