I have been using a database that I constructed for a while now and all is well with it. Well all was well with it until I went to use it today, having changed nothing, and now when I click on the Run Report cmd btn, I get the The Openreport action was canceled everytime.
Other people use this report/database and it works erfectly for them, it is only me it does not work for. The database was designed in 2003 although all other users only use Access 2000. File Format is in 2000 too.
Literally nothing has changed apart from the fact I have installed and Epson printer since the last time I used it, No Windows updates, Office Updates etc etc have been applied.
The basic code behind the button is
Private Sub cmd_btn_rep_1_Click()
On Error GoTo Err_cmd_btn_rep_1_Click
Dim stDocName As String
stDocName = "rpt_centre_dashboard"
DoCmd.OpenReport stDocName, acPreview
DoCmd.RunCommand acCmdFitToWindow
Exit_cmd_btn_rep_1_Click:
Exit Sub
Err_cmd_btn_rep_1_Click:
MsgBox Err.Description
Resume Exit_cmd_btn_rep_1_Click
End Sub
Anybody able to shed any light on this problem? One thing I have just noticed is that I am not even able to open the report in Design View. Nothing happens, machine just sits there doing nuffing
Regards
Toni
Other people use this report/database and it works erfectly for them, it is only me it does not work for. The database was designed in 2003 although all other users only use Access 2000. File Format is in 2000 too.
Literally nothing has changed apart from the fact I have installed and Epson printer since the last time I used it, No Windows updates, Office Updates etc etc have been applied.
The basic code behind the button is
Private Sub cmd_btn_rep_1_Click()
On Error GoTo Err_cmd_btn_rep_1_Click
Dim stDocName As String
stDocName = "rpt_centre_dashboard"
DoCmd.OpenReport stDocName, acPreview
DoCmd.RunCommand acCmdFitToWindow
Exit_cmd_btn_rep_1_Click:
Exit Sub
Err_cmd_btn_rep_1_Click:
MsgBox Err.Description
Resume Exit_cmd_btn_rep_1_Click
End Sub
Anybody able to shed any light on this problem? One thing I have just noticed is that I am not even able to open the report in Design View. Nothing happens, machine just sits there doing nuffing
Regards
Toni
Last edited: