Results 1 to 3 of 3

Thread: Access Database Compacting

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 1999
    Posts
    161

    Question

    I found in this forum how to compact an Access database using ADO. It uses the CompactDatabase method of a JRO.JetEngine object.

    Here is the line I am getting an error on:
    Code:
    JRO.CompactDatabase "PROVIDER=Microsoft.Jet.OLEDB.3.51;Data Source=C:\VB Projects\CD400\CD400.mdb;" _
        & "PROVIDER=Microsoft.Jet.OLEDB.3.51;Data Source=C:\TEMP\temp.mdb;Jet OLEDB:Engine Type=4"
    I am getting the error number 3251: "Object or provider is not capable of performing requested operation."

    What am I doing wrong ? Does anyone know how to do this ?

    Thanks !

  2. #2
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163
    Check you version of your JET OLE DB provider. I've been able to do it successfully using the same logic with version 4.0 of the same provider.
    Glenn D
    Development/Analyst

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 1999
    Posts
    161

    Thumbs up Thanks !

    It works great... I don't understand why it won't do it with that provider though...

    Someone at Microsoft is probably laughing at me...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width