保护access2007数据库\数据表
时 间:2012-04-14 21:43:35
作 者:kk ID:25432 城市:广州
摘 要:保护 ACCESS 2007 数据库 数据表 安全
正 文:
Option Compare Database
Public Ce As Boolean
Private Sub Command0_Click()
Dim ps As String
ps = InputBox("输入导航栏编辑密码:")
If ps = "admin" Then
DoCmd.SelectObject acTable, "a", True
Else
MsgBox ("对不起你没开启的权限")
End If
End Sub
Private Sub Command1_Click()
DoCmd.SelectObject acTable, "a", True
DoCmd.RunCommand acCmdWindowHide
End Sub
Private Sub Command3_Click()
DoCmd.ShowToolbar "Ribbon", acToolbarNo
End Sub
Private Sub Command4_Click()
DoCmd.ShowToolbar "Ribbon", acToolbarYes
End Sub
Private Sub Command6_Click()
Ce = False
DoCmd.Close
End Sub
Private Sub Form_Activate()
Ce = True
End Sub
Private Sub Form_Load()
Ce = True
DoCmd.SelectObject acTable, "a", True
DoCmd.RunCommand acCmdWindowHide
End Sub
Private Sub Form_Unload(Cancel As Integer)
If Ce Then
Cancel = True
Else
Cancel = False
End If
End Sub
‘工程密码及编辑密码都为:admin
附件:
Access软件网QQ交流群 (群号:483923997) Access源码网店
常见问答:
技术分类:
源码示例
- 【源码QQ群号19834647...(12.17)
- 【Access小作品】简单的待...(04.30)
- 【Access窗体导出PDF】...(04.08)
- 【Access窗体导出PDF】...(04.07)
- Access两种方式实现即时更...(03.01)
- Access隐藏与显示lacc...(01.12)
- 【Access高效办公】将每个...(12.23)
- Access21点游戏源代码(12.13)
- 【Access窗体导出Exce...(11.15)
- 【Access开发】Acces...(11.14)
学习心得
最新文章
- 【Access小作品】简单的待办任...(04.30)
- 从另一个ACCESS数据库批量导入...(04.29)
- Access日期格式的数据导出Ex...(04.28)
- ACCESS精华集锦资料.CHM(04.25)
- Access VBA语句If Me...(04.24)
- 【Access修改记录示例】编辑选...(04.22)
- 【Access表名称命名建议】将A...(04.20)
- Access学习笔记--用Acce...(04.19)
- 【Access重复项查询示例】将A...(04.17)
- Access快速开发平台企业版--...(04.16)