Alexandre Neves 14/4/2012, 19:30
Boa tarde, Assis
No MaisConsultas
Private Sub Lista_DblClick(Cancel As Integer)
On Error Resume Next
DoCmd.OpenForm "TodasConsultas", , , , , , Me!Lista.Column(0)
End Sub
No TodasConsultas
Private Sub Form_Open(Cancel As Integer)
On Error Resume Next
Call Center(Me)
Lista.RowSource = "SELECT Agenda.DataAviso, Agenda.Paciente, Agenda.Médico FROM Agenda WHERE Paciente='" & Me.OpenArgs & "';"
End Sub