Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RepairDatabase

Status
Not open for further replies.

egapogi

Programmer
Feb 4, 2002
60
0
0
PH
Anybody who has an idea why RepairDatabase is no longer supported in DAO 3.6?

It was supported in DAO 3.5.....

What is the equivalent method of RepairDatabase in DAO 3.6 by the way?

Thanks,
ega
 
Add the reference to the JDO (PROJECT|REFERENCES) "Microsoft Jet And Replication Objects Library 2.5"

Dim jro As jro.JetEngine
Set jro = New jro.JetEngine
jro.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\\nwind2.mdb", _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\\abbc2.mdb;Jet OLEDB:Engine Type=4"

Check out this site in the MS kb:
 
thanks CCLINT,

but where should i place the user and password... the mdb hass userlevel security.

thanks again,
ega
 
myJRO.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\mymdb\\sample.mdb;Jet OLEDB:Database Password=YourPassword;", _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\mymdb\\compactedSample.mdb;Jet OLEDB:Engine Type=5; Jet OLEDB:Database Password=YourPassword;"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top