while current_record <= temp_rec_count do
begin
frmdmodule.dSet_inventory.First;

while frmdmodule.dSet_inventory.FieldByName('description ').AsString <> frmdmodule.dSet_SalesTemp.FieldByName('description ').asstring do
begin
frmdmodule.dSet_inventory.next;
end;


the code above is part of my POS form the problem i have is that the code through out an error dset_inventory not in edit or insert mode on the first line. i even tried putting in the command on the whole form. please help