J
JRough
I get an error when running thse 2 vbscripts to compact a database
back-end.
Script 1:
The error is on lineL 5. Char:1 Error:expected statement code:
800A0400 source VBscript compilation error:
dbe.systemDB="system.mdb"
dbe.efaultUser ="user"
dbe.DefaultPassword="password"
dbe.CompactDatabase
"z:\SwimClub\acsc_be.mdb"
"z:\SwimClub\compact_acsc_be.mdb",";LANGID=0x0409;CP=1252;COUNTRY=0"
I tried the other suggestion as well and got another error:
Script 2:
C:\Documents and Settins\jains\Desktop\compact3.vbs Line:2 Char:1
Error: Database already exists code:800A-C84 Source: dao.dbengine
set eng = createobject("dao.dbengine.36")
eng.compactdatabase "z:\SwimClub\\acsc_be.mdb", "z:\SwimClub
\compact_acsc_be.mdb"
I took off the "pwd=mypassword" at the end because I think there is no
system password.
As I said, this one also gets an error. It seems like one of the two
scripts should work.
I would like to compact the Access database and/or save the file
before compacting it and get figure out what the errors mean.
thanks,
back-end.
Script 1:
The error is on lineL 5. Char:1 Error:expected statement code:
800A0400 source VBscript compilation error:
dbe.systemDB="system.mdb"
dbe.efaultUser ="user"
dbe.DefaultPassword="password"
dbe.CompactDatabase
"z:\SwimClub\acsc_be.mdb"
"z:\SwimClub\compact_acsc_be.mdb",";LANGID=0x0409;CP=1252;COUNTRY=0"
I tried the other suggestion as well and got another error:
Script 2:
C:\Documents and Settins\jains\Desktop\compact3.vbs Line:2 Char:1
Error: Database already exists code:800A-C84 Source: dao.dbengine
set eng = createobject("dao.dbengine.36")
eng.compactdatabase "z:\SwimClub\\acsc_be.mdb", "z:\SwimClub
\compact_acsc_be.mdb"
I took off the "pwd=mypassword" at the end because I think there is no
system password.
As I said, this one also gets an error. It seems like one of the two
scripts should work.
I would like to compact the Access database and/or save the file
before compacting it and get figure out what the errors mean.
thanks,