C#中数据库Ms-Access中的更新记录 [英] Update record in Database Ms-Access in C#

查看:140
本文介绍了C#中数据库Ms-Access中的更新记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在应用程序中执行IF Manager L0gin并添加一些Record,然后Manager退出,然后一段时间后Employee为L0gin并显示消息框,而他的文本为"New Row Edit" ,,, Please给我示例代码,
谢谢,

how to do this IF Manager L0gin in Application and add some Record ,, And Then Manager is Logout,, And After Some time Employee is L0gin and appear a Message Box And his text is "New Row Edit",,, Please Give me Sample Code,,
Thanks,,

推荐答案

我认为您可以使用以下算法进行操作
1)在登录时编写模块,并识别登录的用户(如果它是"Manager"),然后在数据库中插入/更新一条记录,但在其中保留一个标记为"IsRead"为false.
2)在登录时编写另一个模块,并以"employee"身份标识已登录的用户,然后仅在表中存在"IsRead"标记为false的记录时才显示消息.然后当用户单击该消息的确定",然后将所有"IsRead"错误方法更新为"True".


希望这对您有帮助,如果是,请接受并投票,否则将返回您的查询.
-感谢RDBurmon高级软件工程师
I think you can do this using below algorithm
1) Write module at login and identify the logged in user if it is "Manager" then insert/update one record in database but keep one flag there as "IsRead" as false.
2) Write another module at login and identity the logged in user if it is "employee" then show message only if there are record exists in table with "IsRead" flad is false. and when user click "ok" to that message then update all the "IsRead" false method to "True".


Hope this helps If yes then accept and vote the answer otherwise revert back with your queries.
--Thanks & Regard RDBurmon Sr.Software Engineer


这篇关于C#中数据库Ms-Access中的更新记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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