duvida com comando sql
olá amigos precido de ajuda, estou começando no delphi e preciso fazer uma consulta por nome e data de uma vez usando dois edits.
minha tabela é no paradox e o campo data esta como date, eu já tente alguns comandos sql mas nao deu certo acho que é por causa do campo data esta como date.
preciso de algum exemplo.
desde já agradeço a atenção obrigado.
minha tabela é no paradox e o campo data esta como date, eu já tente alguns comandos sql mas nao deu certo acho que é por causa do campo data esta como date.
preciso de algum exemplo.
desde já agradeço a atenção obrigado.
Fabiodequeiroz
Curtidas 0
Respostas
Dracula Nosferatu
17/11/2003
campo date da tabela := StrToDate(edit.Text);
GOSTEI 0
Fabiodequeiroz
17/11/2003
[quote:5a55ef5d3d=´Dracula Nosferatu´]campo date da tabela := StrToDate(edit.Text);[/quote:5a55ef5d3d]
estou tentando este comando
dm.qryFolha1Quinz.SQL.Add(´select nomefunc,datapag from tblfolha1quinz where nomefunc like ´´+ dbNome.Text +´´ and datapag like ´ ´+ dbDataPag.Text +´ ´ ´);
estou tentando este comando
dm.qryFolha1Quinz.SQL.Add(´select nomefunc,datapag from tblfolha1quinz where nomefunc like ´´+ dbNome.Text +´´ and datapag like ´ ´+ dbDataPag.Text +´ ´ ´);
GOSTEI 0
Dracula Nosferatu
17/11/2003
Tenta assim.
dm.qryFolha1Quinz.SQL.Add(´select nomefunc,datapag from tblfolha1quinz where nomefunc like ´´+ dbNome.Text +´´ and datapag like ´ ´+ StrToDate(dbDataPag.Text) +´ ´ ´);
dm.qryFolha1Quinz.SQL.Add(´select nomefunc,datapag from tblfolha1quinz where nomefunc like ´´+ dbNome.Text +´´ and datapag like ´ ´+ StrToDate(dbDataPag.Text) +´ ´ ´);
GOSTEI 0
Fabiodequeiroz
17/11/2003
[quote:a29571e6b2=´Dracula Nosferatu´]Tenta assim.
dm.qryFolha1Quinz.SQL.Add(´select nomefunc,datapag from tblfolha1quinz where nomefunc like ´´+ dbNome.Text +´´ and datapag like ´ ´+ StrToDate(dbDataPag.Text) +´ ´ ´);[/quote:a29571e6b2]
esta dando um erro de incompatibilidade de tipos
dm.qryFolha1Quinz.SQL.Add(´select nomefunc,datapag from tblfolha1quinz where nomefunc like ´´+ dbNome.Text +´´ and datapag like ´ ´+ StrToDate(dbDataPag.Text) +´ ´ ´);[/quote:a29571e6b2]
esta dando um erro de incompatibilidade de tipos
GOSTEI 0