登录/用户名 [英] login / username
本文介绍了登录/用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨......我使用了一个教程... http://www.databasedev.co.uk/login.html ...创建一个登录表单。工作正常,我想要做的是在我的一个表格,输入数据我使用以下代码..
hi.... i am used a tutorial found at...http://www.databasedev.co.uk/login.html... to create a login form. works fine, what i am wanting to do is on one of my forms, where data is entered i use the following code..
展开 | 选择 | 换行 | 行号
推荐答案
嗨戴尔。您可以使用全局变量来存储用户名,在登录代码中的员工条目组合的AfterUpdate事件中更新,以及返回用户名全局变量值的公共函数。
在登录代码的代码模块中添加以下公共(全局)变量定义和函数:
Hi Dale. You can use a global variable to store the username, updated in the AfterUpdate event of the employee entry combo in your login code, and a public function to return the value of the username global variable.
In the code module of your login code add the following public (global) variable definition and function:
展开 | 选择 | Wrap | 行号
欢呼为此,今天就试试吧。非常感谢
cheers for this, will give it a go today. many thanks
试了一下,但是''打开''下面的代码给了我一个编译错误,子或函数中的无效属性,广告强调了这一点...
公共用户名为字符串
任何想法
欢呼
tried it, but the code below on the ''on open'' is giving me a compile error, a invalid attribute in sub or function, ad is highlighting this bit...
Public UserName As String
any ideas
cheers
这篇关于登录/用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文