Dim ws As Workspace
Dim db As Database
Dim rs As Recordset For Each ws In Workspaces
For Each db In ws.Databases
For Each rs In Data.Recordsets
rs.Close
Set rs = Nothing
Next
Data.Close
Set db = Nothing
Next
ws.Close
Set ws = Nothing
Next
FileCopy App.Path & "\data.mdb", "d:\data.mdb"
Me.MousePointer = 0
MsgBox "数据已备份完毕"出现70错误,拒绝的权限,怎么修改才行,还有怎么编写代码还原数据库的方法,谢谢!
Dim db As Database
Dim rs As Recordset For Each ws In Workspaces
For Each db In ws.Databases
For Each rs In Data.Recordsets
rs.Close
Set rs = Nothing
Next
Data.Close
Set db = Nothing
Next
ws.Close
Set ws = Nothing
Next
FileCopy App.Path & "\data.mdb", "d:\data.mdb"
Me.MousePointer = 0
MsgBox "数据已备份完毕"出现70错误,拒绝的权限,怎么修改才行,还有怎么编写代码还原数据库的方法,谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货