ACCESS用代码如何压缩与修复带有安全机制工作组的后台文件 其中工作组的用wmd文件已存在而且知道用户名与密码 如果不带工作组的的优化如下,那带工作组的呢如何Dim srph As String, ysdb As String Dim je As New JRO.JetEngine srph = CurrentProject.Path & "\base000.mdb" ysdb = 路径 If Dir(srph) <> "" Then Kill srph je.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & ysdb & ";Jet OLEDB:Database Password=" & "", "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & srph & ";Jet OLEDB:Database Password=" & "" Set je = Nothing FileCopy srph, ysdb Kill srph MsgBox "源数据文件已优化! :)", vbInformation, "提示" End If |
|站长邮箱|小黑屋|手机版|Office中国/Access中国
( 粤ICP备10043721号-1 )
GMT+8, 2025-4-4 05:20 , Processed in 0.072433 second(s), 17 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.