|
3#
楼主 |
发表于 2014-8-21 12:40:21
|
只看该作者
Private Const lngMaxAccDisplay As Long = 0
Private Sub regMaxAccDisplay() '重新注册 显示最近使用数据库的最大数量
Dim regAcc As Object
Dim regPath As String
Dim Type_Name As String
Dim Key_Name As String
Dim Key_Data As Long
Set regAcc = CreateObject("Wscript.Shell")
regPath = "HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\File MRU\"
Type_Name = "REG_DWORD"
Key_Name = "Max Quick Access Display"
Key_Data = lngMaxAccDisplay
regAcc.regWrite regPath & Key_Name, Key_Data, Type_Name
Set regAcc = Nothing
End Sub
总感觉还是要找到access2010内置的方法比较好。 |
|