Hi all,
Batchmove using BatCopy, copies across all my records from one table to another even though I have put a range on the source "Date" field. I've used TTable.Batchmove and the
Batchmove component but I can't get the filtered results - what am I doing wrong?
ProgBar.position:=1;
{---- using Datepicker for dates: start and end---}
memstatext:=DatetoStr(stadate.date);
memendtext:=DatetoStr(enddate.date);
With Table2 do
begin
EditRangeStart;
FieldByName('Date').AsString:= memstatext;
EditRangeEnd;
FieldByName('Date').AsString:= memendtext;
Applyrange;
end;
{The Source and destination already specified in component.}
With Batchmove1 Do
begin
Mode:=batCopy;
Execute;
end;
{staext.BatchMove(Table2, batCopy);}
ProgBar.Position:=100;
memused:=staext.RecordCount;
memreject:=(memwhole-memused);
thanks for any help!
Allen
Batchmove using BatCopy, copies across all my records from one table to another even though I have put a range on the source "Date" field. I've used TTable.Batchmove and the
Batchmove component but I can't get the filtered results - what am I doing wrong?
ProgBar.position:=1;
{---- using Datepicker for dates: start and end---}
memstatext:=DatetoStr(stadate.date);
memendtext:=DatetoStr(enddate.date);
With Table2 do
begin
EditRangeStart;
FieldByName('Date').AsString:= memstatext;
EditRangeEnd;
FieldByName('Date').AsString:= memendtext;
Applyrange;
end;
{The Source and destination already specified in component.}
With Batchmove1 Do
begin
Mode:=batCopy;
Execute;
end;
{staext.BatchMove(Table2, batCopy);}
ProgBar.Position:=100;
memused:=staext.RecordCount;
memreject:=(memwhole-memused);
thanks for any help!
Allen