COMO FACO PARA JUNTAR ESSE DOIS CODIGOS
Aqui ele mostrar no DBGRID as Faturas com os mesmos numeros da Apolices
If TxtApolice.Text <> "" Then
DatNavegador.RecordSource = "Select * from Faturas where APOLICE= '" & (TxtApolice.Text) & " ' "
DatNavegador.Refresh
End If
e esse coloca em ordem de data desc a Vigencia
DatNavegador.RecordSource = "select * from Faturas order by VIGENCIA DESC"
DatNavegador.Refresh
DatNavegador.Recordset.MoveFirst
COMO FAÇO PARA FAZER AS DUAS COISAS NA MESMA LINHA (NO MESMO COMANDO)
If TxtApolice.Text <> "" Then
DatNavegador.RecordSource = "Select * from Faturas where APOLICE= '" & (TxtApolice.Text) & " ' Order By VIGENCIA DESC"
DatNavegador.Refresh
End If
DatNavegador.RecordSource = "Select * from Faturas where APOLICE= '" & (TxtApolice.Text) & " ' Order By VIGENCIA DESC"
DatNavegador.Refresh
End If
Tópico encerrado , respostas não são mais permitidas