G
Guest
I have added some command buttons to a form using the wizard to create the
Sub shown below. The buttons worked the first couple of times I checked them
and then suddenly I started getting this error message:
"A problem occurred while Microsoft Access was communicating with OLE server
or ActiveX control"
This is the same code that I have been using FOREVER to handle these events
so I'm very confused as to what is wrong. Can anyone tell me what the problem
might be?
================================
Private Sub btn_QRpt_Click()
On Error GoTo Err_btn_QRpt_Click
Dim stDocName As String
stDocName = "Quality Review"
DoCmd.OpenReport stDocName, acPreview
Exit_btn_QRpt_Click:
Exit Sub
Err_btn_QRpt_Click:
MsgBox Err.Description
Resume Exit_btn_QRpt_Click
End Sub
Sub shown below. The buttons worked the first couple of times I checked them
and then suddenly I started getting this error message:
"A problem occurred while Microsoft Access was communicating with OLE server
or ActiveX control"
This is the same code that I have been using FOREVER to handle these events
so I'm very confused as to what is wrong. Can anyone tell me what the problem
might be?
================================
Private Sub btn_QRpt_Click()
On Error GoTo Err_btn_QRpt_Click
Dim stDocName As String
stDocName = "Quality Review"
DoCmd.OpenReport stDocName, acPreview
Exit_btn_QRpt_Click:
Exit Sub
Err_btn_QRpt_Click:
MsgBox Err.Description
Resume Exit_btn_QRpt_Click
End Sub