La Accion OpenReport se Cancel贸
Tengo una aplicacion en Access 2003 con unos reportes que corren en maquina bajo XP en 2 de las 8 maquinas cuando desde el boton intento abrir el reporte aparece el mensaje en el resto funciona correctamente. Intente abrir el reporte desde la consola de access y tampoco abre.
El Codigo de la rutina es el siguiente:
Private Sub ClientesPlan_Click()
On Error GoTo Err_Reporte_Click
Dim stDocName As String
stDocName = "Clientes"
DoCmd.OpenReport stDocName, acPreview
Exit_Reporte_Click:
Exit Sub
Err_Reporte_Click:
Const conErrDoCmdCancelled = 2501
If (Err = conErrDoCmdCancelled) Then
Resume Exit_Reporte_Click
Else
MsgBox Err.Description
Resume Exit_Reporte_Click
End If
End Sub
Si Alguien me pudiese ayudar
El Codigo de la rutina es el siguiente:
Private Sub ClientesPlan_Click()
On Error GoTo Err_Reporte_Click
Dim stDocName As String
stDocName = "Clientes"
DoCmd.OpenReport stDocName, acPreview
Exit_Reporte_Click:
Exit Sub
Err_Reporte_Click:
Const conErrDoCmdCancelled = 2501
If (Err = conErrDoCmdCancelled) Then
Resume Exit_Reporte_Click
Else
MsgBox Err.Description
Resume Exit_Reporte_Click
End If
End Sub
Si Alguien me pudiese ayudar
