Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/04/2004, 13:35
emiliomx
 
Fecha de Ingreso: enero-2004
Ubicación: México D,F
Mensajes: 44
Antigüedad: 20 años, 3 meses
Puntos: 0
Así me quedo.
hay otra mejor forma?

Private Sub Command1_Click()
On Error GoTo fallo:
.......rutina1 de conexión...............
Exit Sub

fallo:
Command2_Click

End Sub


Private Sub Command2_Click()
On Error Resume Next
On Error GoTo fallo:
.......rutina2 de conexión...............
Exit Sub

fallo:
MsgBox "Se ha producido el siguiente error:" & vbCrLf & _
Err.Number & ", " & Err.Description &"
End Sub


Gracias

Adios..