密码用户名帮助 [英] Password username help

查看:65
本文介绍了密码用户名帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Access 2010数据库,我希望在名为Login的表单上正确输入用户名和密码后,授予管理员,管理员,用户或查看者访问数据库的权限。用户名和密码以及其他相关信息存储在表调用Staff中。 Staff表的相关字段为:

1. Employee_Num

2. Staff_Name

3. User_Name

4 。密码

5.状态(1 =管理员2 =经理3 =用户4 =观众状态)


只有管理员才能进入员工表。我需要能够为每个表单添加添加记录的当前用户名,状态,日期和时间。此外,我需要添加任何编辑的记录,管理员或管理员的用户名,状态,日期和时间。如何从患者信息表单等其他表单上的记录中获取登录表单中的用户名?由于多个用户将同时在不同的终端上,这很复杂。如果你有一篇简单的文章开始,我将不胜感激。

谢谢,

Carl23

I have an Access 2010 database that I would like to give the Administrator, Manager, User or Viewer access to the database upon correct entry of their username and password on a form called Login. The username and password, as well as other related information is stored in a table call Staff. Pertinent fields of the Staff table are:
1. Employee_Num
2. Staff_Name
3. User_Name
4. Password
5. Status (1=Administrator 2=manager 3=user 4=viewer status)

Only an administrator shall be given access to the Staff table. I need to be able to add to each form the current username, status, date and time where records are added. Also, I need to add to any record that is edited, the username, status, date and time of the Administrator or Manager. How do I get the username from the Logon form on a record on another form like the patient information form? This is complicated by multiple users will be on different terminals at the same time. If you have a simple article to get started, I would appreciate it.
Thanks,
Carl23

推荐答案

Carl23:

另外,我需要添加到任何已编辑的记录,用户名,状态,日期和管理员或经理的时间。
Carl23:
Also, I need to add to any record that is edited, the username, status, date and time of the Administrator or Manager.



我不知道你是怎么做到的,因为你的设计似乎不支持知道管理员或经理是谁。


否则,您需要在前端数据库中保留一个注释,如果这是您的工作方式,或者是在整个会话期间保持打开的表单上的隐藏控件中,[Staff]表的PK。通过整个项目提供的PK,您只需要几行代码,而不是相关[人员]记录中的所有数据。


NB。切勿将密码以明文形式存储在表格中。总是首先以某种方式对它们进行混淆,最好采用一些不错的加密方式(参见 VBA和VBScript的AES加密算法用于VBA和VBScript的RC4加密算法和/或用于VBA和VBScript的SHA2加密哈希算法)。


希望这有帮助,[Staff]表的PK是Employee_Num。是否可以将用户名作为包含PK的下拉组合框进行访问?

谢谢,

Carl23
Hope this helps, the PK of the [Staff] table is the Employee_Num. Would it work to have the username accessible as a drop down combo box that also contains the PK?
Thanks,
Carl23


卡尔,是什么阻止他们使用shift键旁路来跳过所有代码并直接访问表格?
Carl, what''s to stop them from using the shift key bypass to skip all the code and get direct access to the tables?


这篇关于密码用户名帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆