BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

EVariantTypeCastError with ADO and MSAccess

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Brigitte
Guest





PostPosted: Mon Feb 21, 2005 9:45 pm    Post subject: EVariantTypeCastError with ADO and MSAccess Reply with quote



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





PostPosted: Tue Feb 22, 2005 3:57 am    Post subject: Re: EVariantTypeCastError with ADO and MSAccess Reply with quote



do you have a field that does not allow nulls and you have not put data into
the field?


Back to top
Brigitte
Guest





PostPosted: Thu Mar 10, 2005 2:44 pm    Post subject: Re: EVariantTypeCastError with ADO and MSAccess Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.