Re: Creating MSAccess is with error???

From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 10/15/03


Date: Tue, 14 Oct 2003 21:54:14 -0500


>THIS GIVING A MENSAGM OF MISTAKE:
>SEQUENCE OF DISABLE CLASS
>USE WINDOWS2000, Delphi6, Brazil
I am not familiar with this error my guess is you are translating it incorrectly
>
>var
> access: Variant;
>begin
> access := CreateOleObject('DAO.DBEngine.35');
This requires Jet 3.5 which you probably don't have installed.
Since you posted in the ADO section using ADOX instead of DAO is a better option

import the ADOX type library and you can use code like this
var
   Catalog: _Catalog;
   CS,dbName: string;
begin
   dbName := 'myNewAccessDB6.mdb';
   Catalog := CreateCOMObject(StringToGUID('ADOX.Catalog')) as _Catalog;
   CS := 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=' + dbName
    // Engine type = 5 creates 2000 database
 +';Jet OLEDB:Engine Type=5';
   if FileExists(dbName) then
      DeleteFile(dbName);
   Catalog.Create(CS);
   Catalog := nil;

end;

--
Brian Bushay (TeamB)
Bbushay@NMPLS.com


Relevant Pages

  • Re: Proust/Moncrieff: And see you this, my boy,
    ... and translating it in such a way as to attract ... attention to it, is, I think, a mistake. ...
    (alt.usage.english)
  • Re: Cantors diagonal proof wrong?
    ... > If an infinite number of people toss a coin infinite times each, ... > possible for you to toss a coin infinite times in a new sequence? ... > just all make the same mistake. ...
    (sci.math)
  • Re: Dedekind Cuts, Fundamental Sequences: why?
    ... sequence of rationals does not necessarily converge, ... If you want trolling, see my most recent message to Herr Ullrich. ... I'm glad I made the mistake. ...
    (sci.math)
  • Re: Creating MSAccess is with error???
    ... it was exactly that code that I was seeking. ... Roberto ... >>SEQUENCE OF DISABLE CLASS ...
    (borland.public.delphi.database.ado)
  • Re: Input file *.txt to dialog box
    ... First off the normal TXT file should have \r\n sequence at the end of each ... line on Windows (and \n on Unix if I am not mistaken). ... > Please, I'm sure this looks like silly mistake, however, I'm trying... ...
    (microsoft.public.vc.mfc)