 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Brigitte Guest
|
Posted: Mon Feb 21, 2005 9:45 pm Post subject: EVariantTypeCastError with ADO and MSAccess |
|
|
Bonjour,
I use Delphi 7, the database is MSAccess, and ADO components (new user with
ADO, I quit BDE because having many troubles with MSAccess).
At the beginning of the appliaction, when I open the table (table.Active :=
True), I have the following message error: "Project XXX.exe raised
exception class EVariantTypeCastError with message 'Could not convert
variant of type (Null) into type (String)'. etc..."
I don't know what it's because the code is opening the table, the log does
not show any apparent mistake and the record can be saved anyway in the
table. Later on, there is another mistake when saving some particularly
fields which could be related with the first one (like row with fields
having changed)? (need to confirm for that one).
Somebody can help me?
Thank you
Brigitte
|
|
| Back to top |
|
 |
Del M Guest
|
Posted: Tue Feb 22, 2005 3:57 am Post subject: Re: EVariantTypeCastError with ADO and MSAccess |
|
|
do you have a field that does not allow nulls and you have not put data into
the field?
|
|
| Back to top |
|
 |
Brigitte Guest
|
Posted: Thu Mar 10, 2005 2:44 pm Post subject: Re: EVariantTypeCastError with ADO and MSAccess |
|
|
I checked this as well. In the DB I have no required fields except keys. And
to avoid the problem, I unchecked the DBcheckboxes (finally, I did not allow
grayed for checkboxes because I thought maybe is the problem) and give
values to DBComboboxes when opening the dataset.
Brigitte
"Del M" <Del.Murray (AT) CreditHawk (DOT) Net> wrote
| Quote: | do you have a field that does not allow nulls and you have not put data
into
the field?
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|