How can I view the text in a Memo field using an Acess database. This line doesn't work:
Memo.Lines.Text:=Table2.FieldByName('Notes').AsString;
But it worked fine on a Paradox table! I'M using an ADOTable in Delphi 6.
I can I view the text in a Memo field using an Acess database. This line doesn't work:
Memo.Lines.Text:=Table2.FieldByName('Notes').AsString;
But it worked fine on a Paradox table! I'M using an ADOTable in Delphi 6.
Ok I figured out the main problem. This (") and that ([]). I must give credit to:hilfy on the Access date format using the(#)sign in a Date field. Upon doing some reading, I totally forgot about the square brackets required in Access on field-names which contain special characters i.e A_OT...
I've tried the code posted, however I still get a "Syntax Error" from the Access database. So let me explain some details:
SIXTOUR and OVERTIME: are both Floating point values.
DATE_IS is of ftDate. The rest of the fields are simple strings e.g., (ftString)...These datatypes are the same in both...
This code works great in Paradox using the BDE, but returns an Error using quering an Access database:
for i:= 0 to ListView1.Items.Count-1 do
With ListView1 do
begin
Query1.SQL.Clear;
Query1.SQL.Add('UPDATE "'+Table2.TableName+
'" SET OVERTIME...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.