因为我在我的程序中放了一个代码 AllowBypassKey = false
如果我在 Access Runtime 2010 中运行我的代码,会自动给出一个运行时错误并无缘无故关闭我的程序。:(
===================
What I did is :
-The first form will show in the program is the LoginForm
-On Load LoginForm
CurrentDB.Properties("AllowBypassKey") = false
-On Click Quit Button in the LoginForm.
If txtpassword = strByPassCode then CurrentDB.Properties("AllowBypassKey") = True
=====================
我不确定我的程序发生了什么,但如果我在完整版 Ms Access 2010 中运行我的程序,我的代码没有遇到任何错误。
但是如果我删除 AllowByPassKey 它将运行顺利。但是我需要输入一个旁路代码,这样我的代码和表格都会受到保护。