Set Ca = Nothing CreateDBfile = True
+ u( p9 e* k; |' Z: G- v. U6 ? End If" t' M% Y8 W$ ^) e! v
End function) N3 I: C* J! {
Public function CompactDatabase(byVal dbFileName,byVal DbVer,byVal SavePath)
: E$ v4 H% o4 W; O" I5 p* c: g* { ’压缩数据库文件/ N* e# P' U9 h0 c" z+ b
’0 为access 97
* @9 ~( Z& |' h+ u ’1 为access 2000/ G, Q6 D3 ~8 c# I' g/ H/ A, r
On Error resume next
% P) j+ f3 {' A, M, h/ @* y If Right(SavePath,1)"\" Or Right(SavePath,1)"/" Then SavePath = Trim(SavePath) & "\"' i* H( a0 {; T, G
If Left(dbFileName,1)="\" Or Left(dbFileName,1)="/" Then dbFileName = Trim(Mid(dbFileName,2,Len(dbFileName)))7 ^9 K5 H* |" k- G5 ^' H
If DbExists(SavePath & dbFileName) Then
2 T2 {; D7 Q# w" A5 p" i( C Response.Write ("对不起,该数据库已经存在!")+ e, i' S1 ]: t' ?4 x) f& R; T
CompactDatabase = False
; K2 x4 f* Z/ i Else4 J% |3 C9 D) a2 _( e2 i
Dim Cd% b. ~ @" L* S9 n( C6 u2 ~
Set Cd =Server.CreateObject("JRO.JetEngine")9 K( A+ {- q; u f$ W
0 h, h1 x2 Y$ |" w
If Err.number0 Then |