[Microsoft][ODBC Microsoft Access Driver]Invalid precision value
Posted: Sun 16 Mar 2014 11:52
I am trying to insert text (the content of a mail) to a memo field in MS Access but I get a [Microsoft][ODBC Microsoft Access Driver]Invalid precision value
I simply can't identify other problems than the text might be to to - what is the limit in UniDAC?
The code:
procedure TfrmTest.Button1Click(Sender: TObject);
var
Query: TUniQuery;
begin
Query := frmUniConn.CreateQuery;
try
Query.SQL.Clear;
Query.SQL.Add('INSERT INTO tbllogbook');
Query.SQL.Add(' ( ');
Query.SQL.Add(' fldlog_guid');
Query.SQL.Add(' ,fldlog_text');
Query.SQL.Add(' ) values ( ');
Query.SQL.Add(' :fldlog_guid');
Query.SQL.Add(' ,:fldlog_text');
Query.SQL.Add(' ) ');
Query.ParamByName('fldlog_guid').AsString := GuidCreate;
Query.ParamByName('fldlog_text').AsString := Memo1.Text;
Query.Execute;
finally
Query.Free;
end;
end;
frmUniConn is a datamodule where I create the connection to database and the Query
I simply can't identify other problems than the text might be to to - what is the limit in UniDAC?
The code:
procedure TfrmTest.Button1Click(Sender: TObject);
var
Query: TUniQuery;
begin
Query := frmUniConn.CreateQuery;
try
Query.SQL.Clear;
Query.SQL.Add('INSERT INTO tbllogbook');
Query.SQL.Add(' ( ');
Query.SQL.Add(' fldlog_guid');
Query.SQL.Add(' ,fldlog_text');
Query.SQL.Add(' ) values ( ');
Query.SQL.Add(' :fldlog_guid');
Query.SQL.Add(' ,:fldlog_text');
Query.SQL.Add(' ) ');
Query.ParamByName('fldlog_guid').AsString := GuidCreate;
Query.ParamByName('fldlog_text').AsString := Memo1.Text;
Query.Execute;
finally
Query.Free;
end;
end;
frmUniConn is a datamodule where I create the connection to database and the Query