 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Timothy Jones Guest
|
Posted: Wed Jan 21, 2004 2:13 am Post subject: Delphi 4 and MS Access |
|
|
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
|
Posted: Wed Jan 21, 2004 5:50 pm Post subject: Re: Delphi 4 and MS Access |
|
|
"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 |
|
 |
|
|
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
|
|