![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
12/04/2004, 13:35
|
| | Fecha de Ingreso: enero-2004 Ubicación: México D,F
Mensajes: 44
Antigüedad: 21 años, 1 mes 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.. |