保护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交流群 (群号:54525238) Access源码网店
常见问答:
技术分类:
源码示例
- 【源码QQ群号19834647...(12.17)
- Access自定义消息盒Msg...(04.28)
- Access怎么按每个月份里面...(03.09)
- Access怎么按季度来统计人...(02.26)
- Access怎么按年龄段来统计...(01.26)
- 【Access高效办公】上一年...(12.29)
- 用Access连续窗体制作的树...(11.03)
- 【Access高效办公】上一年...(10.30)
- Access制作的RGB转CM...(09.22)
- Access制作的RGB调色板...(09.15)
学习心得
最新文章
- 直播预告|Access多用户协作终...(05.10)
- 盟威软件快速开发平台(05.07)
- 站长张志在网络百科全书中的介绍(05.02)
- Access自定义消息盒Msgbo...(04.28)
- Access快速开发平台--提示:...(04.23)
- Access快速开发平台--2.6...(04.20)
- 批量插入数据大幅提升速度详解(04.13)
- 如何用VBA代码结合企业微信,给微...(04.11)
- Access直播-TreeView...(04.10)
- Access直播-带您进入ACCE...(04.08)


.gif)
