COMO FACO PARA JUNTAR ESSE DOIS CODIGOS

PROPAR 07/01/2005 13:32:31
#59215

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)
DNEVONY 07/01/2005 13:35:33
#59218
Resposta escolhida
If TxtApolice.Text <> "" Then
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