保护access2007数据库\数据表-kk
Access软件网QQ交流学习群(群号码198465573),欢迎您的加入!
首页 >技术文章> Access数据库-表


保护access2007数据库\数据表

发表时间:2012/4/14 21:43:35 评论(7) 浏览(8648)  评论 | 加入收藏 | 复制
   
摘 要:保护 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群(群号:198465573)
 
 相关文章
保护 access 2007 数据库  【Microsoft  2008/4/27】
关于保护 access 项目中的 Visual Basic for...  【UMVSoft整理  2008/5/13】
保护您的access开发成果  【Kevin  2010/1/30】
利用工程属性保护你的劳动成果  【王樵民  2010/3/16】
WinHex加密保护教程  【纵云梯  2012/2/10】
保护access2007 数据表  【kk  2012/8/9】
常见问答
技术分类
相关资源
文章搜索
关于作者

kk

文章分类

文章存档

友情链接