pesquisa entre datas diferentes
eu estou fazendo uma pesquisa com o seguinte codigo
TB_historico_vendas.SetRangeStart;
TB_historico_vendas.FieldByName(´data´):=edit1.text;
TB_historico_vendas.SetRangeEnd;
TB_historico_vendas.FieldByName(´data´):=edit2.text;
TB_historico_vendas.ApplyRange;
eu quero saber onde está o erro, pois não da certo
TB_historico_vendas.SetRangeStart;
TB_historico_vendas.FieldByName(´data´):=edit1.text;
TB_historico_vendas.SetRangeEnd;
TB_historico_vendas.FieldByName(´data´):=edit2.text;
TB_historico_vendas.ApplyRange;
eu quero saber onde está o erro, pois não da certo
Anjomd
Curtidas 0
Respostas
Anjomd
17/12/2003
oi pessoal, eu conssegui resolver o meu promeblema com o seguinte codigo
TB_historico_vendas.Open;
TB_historico_vendas.IndexFieldNames := ´data´;
TB_historico_vendas.SetRangeStart;
TB_historico_vendas.FieldByName(´data´).AsDateTime:=strtodate(edit1.text);
TB_historico_vendas.SetRangeEnd;
TB_historico_vendas.FieldByName(´data´).AsDateTime:=strtodate(edit2.text);
TB_historico_vendas.ApplyRange;
obrigado a todos
TB_historico_vendas.Open;
TB_historico_vendas.IndexFieldNames := ´data´;
TB_historico_vendas.SetRangeStart;
TB_historico_vendas.FieldByName(´data´).AsDateTime:=strtodate(edit1.text);
TB_historico_vendas.SetRangeEnd;
TB_historico_vendas.FieldByName(´data´).AsDateTime:=strtodate(edit2.text);
TB_historico_vendas.ApplyRange;
obrigado a todos
GOSTEI 0