Article View: borland.public.cppbuilder.database.ado
Article #959Re: ADO Database Opening Problem
From: Vladimir Stefanovic
Date: Wed, 16 Feb 2005 17:35
Date: Wed, 16 Feb 2005 17:35
39 lines
1955 bytes
1955 bytes
Add *ALL* tables' fields to code. Ie, double click on TTable on your datamodule and Add All fields... ;) -- Best regards, Vladimir Stefanovic "John Borchers" <jborchers@notmail.com> wrote in message news:42137669$1@newsgroups.borland.com... > All, > > Using BCB6, MS Access Tables 2000 > > The first time of every run I try to open a TADOTable with direct access I > get the following error message: > > ...raised exception class EVariantTypeCastError with message 'Could not > convert variant of type (Null) into type (String)' > > from my line: > > ADOTable1->Active=true; > > This error happens with or without data in rows. In other words, with data > in rows no columns are NULL so this error shouldn't be possible. > > This error only shows up with the IDE running. It doesn't actually throw > an exception within the program. After this line, the table is indeed > active and can be written and read from. > > Anyone know what's going on here? > > TIA, > > John >
Technical Details
Message-ID:
<42138469$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42137669$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,cd22766f8de860a7 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu> Newsgroups: borland.public.cppbuilder.database.ado References: <42137669$1@newsgroups.borland.com> Subject: Re: ADO Database Opening Problem Date: Wed, 16 Feb 2005 18:35:45 +0100 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 82.117.212.65 Message-ID: <42138469$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1108575337 82.117.212.65 (16 Feb 2005 09:35:37 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail