I have a field in my database that is 'Currency'. Now in delphi I have this code:
Qryupdatestock.SQL.Clear;
Qryupdatestock.SQL.Add('Update Z1Read');
Qryupdatestock.SQL.Add('Set '+ Category + ' = '+Category+ '+ ' +FloattoStr(Price));
Qryupdatestock.SQL.Add('Where Dates = '+DatetoStr(Date));
Qryupdatestock.execsql;
And example of FloattoStr(Price) = 2.4 for example
Now, I try this, but it doesn't work. I want it to 'add' onto what is already there. It runs fine, but it doesn't update the database. I am assuming that the format is entered incorrectly
Any help appreciated


Sign In
Create Account


Back to top













