I use an Access Database with ADO to control it with a Delphi application.
In design time I created my NextDBGrid, few column are memo type, I configured them to display full content.
It's working fine, but when I try to editing a cell, I have this error message
QUOTE
Le projet SuiviAT.exe a provoqué une classe d'exception EDatabaseError avec le message 'Impossible d'accéder au champ 'Nature' comme type Text'. Processus stoppé. Utilisez Pas-à-pas ou Exécuter pour continuer.
With debugging the error occur here
CODE
procedure TNextDBGrid.CompleteEdit;
var
Field: TField;
begin
try
[...]
if (Field <> nil) and Field.CanModify then Columns[ACol].ApplyField(Value); //Value = '(Memo)'
[...]
end;
var
Field: TField;
begin
try
[...]
if (Field <> nil) and Field.CanModify then Columns[ACol].ApplyField(Value); //Value = '(Memo)'
[...]
end;
To validate my ADO connection configuration, I tested this modification of Memo field with a TDBMemo and it's work.
Thanks for your help
++
Qwaz











