Article View: borland.public.cppbuilder.database.ado
Article #2581EVariantTypeCastError
From: Hans J�nsson
Date: Wed, 16 Apr 2003 19:48
Date: Wed, 16 Apr 2003 19:48
15 lines
1793 bytes
1793 bytes
Hello! I haven't worked with MS Access before but now I have a database in Access and I have created a simple program connecting to it with ADO components. I have a table, a connection and a data source. On the form a grid. It compiles and build without a hitch, but when I run the program I get Project ADOProj.exe raised exception class EVariantTypeCastError with message ' Could not convert variant type (Null) into type (String). The arrow in front of the "blue band" points at the line : TDataModule(Owner), the last part of the fastcall line that begins the data module. I looked up the error without getting much wiser. And if I click OK on the message box and Run|Run the program runs. Any ideas on what I can have missed out on? I am not used to work with connection strings (except in ASP). greetings hans. I should add that the program runs without problems from Run on the Start menu of Windows XP Pro. greetings hans
Technical Details
Message-ID:
<3e9db3aa@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,d51f9c4146a3da89,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-04-16 12:54:07 PST From: "Hans J�nsson" <042140773@telia.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: EVariantTypeCastError Date: Wed, 16 Apr 2003 21:48:58 +0200 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 195.252.46.123 Message-ID: <3e9db3aa@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1050522538 195.252.46.123 (16 Apr 2003 12:48:58 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail