Access - Abrir subformulario con boton

 
Vista:

Abrir subformulario con boton

Publicado por Jesus (1 intervención) el 20/03/2009 09:11:24
Hola, tengo un formulario llamado CLIENTES y un subformulario llamado TRABAJOS A REALIZAR.
Quiero añadir un botón de comando en el formulario y que me vaya al subformulario y me añada un nuevo registro. No consigo hacerlo, ¿alguien me puede ayudar?
Gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Abrir subformulario con boton

Publicado por QUIQUE (293 intervenciones) el 20/03/2009 13:59:53
VERE SI TE ENTENDÍ. EL FORM CLIENTES ES UN FORM DE BUSQUEDA Y EN FORM TRABAJO QUERES QUE SE ABRA EN BLANCO PARA INGRESAR LOS DATOS.
SI ES ASÍ DEBES PONER ESTE CÓDIGO EN EL EVENTO CLICK DEL BOTON
AL QUE LLAMAREMOS TUBOTON

Private Sub TUBOTON_Click()
On Error GoTo Err_TUBOTON_Click

DoCmd.OpenForm "TRABAJOS"

DoCmd.GoToRecord , , acNewRec

Exit_TUBOTON_Click:
Exit Sub

Err_TUBOTON_Click:
MsgBox Err.Description
Resume Exit_TUBOTON_Click

End Sub

QUIQUE
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar