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 

Delphi 4 and MS Access

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Timothy Jones
Guest





PostPosted: Wed Jan 21, 2004 2:13 am    Post subject: Delphi 4 and MS Access Reply with quote



Hi all,



I'm getting a General SQL Error -2147221164 error in Delphi 4 when
attempting to connect a
TDatabase component to an MS Access table. I am following the below
instructions:

Database1.DatabaseName:='tryDB';
Database1.DriverName:=MSACCESS;
Database1.LoginPromt:=false;
Database1.Params.Clear;
Database1.Params.Add('DATABASE NAME=D:Projectspattern.mdb');
Database1.Connected:=true;
TDBGrid.DataSource:=DataSource1;
DataSource1.DataSet:=Table1;
Table1.DatabaseName:='tryDB';

Table1.Active:=true;

Any help would be appreciated.

TIA,

TJ



Back to top
John of Aix
Guest





PostPosted: Wed Jan 21, 2004 5:50 pm    Post subject: Re: Delphi 4 and MS Access Reply with quote




"Timothy Jones" <timothy.jones (AT) team (DOT) telstra.com> a écrit dans le
message de news: bukn80$1do$1 (AT) mws-stat-syd (DOT) cdn.telstra.com.au...
Quote:
Hi all,



I'm getting a General SQL Error -2147221164 error in Delphi 4 when
attempting to connect a
TDatabase component to an MS Access table. I am following the
below
instructions:

I don't know if this is your problem (I doubt it) but

Quote:
Database1.LoginPromt:=false;

should be

Database1.LoginPrompt:=false;






Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc 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.