M
Myron Mummey
I read many threads regarding using the code found at this web site:
http://www.mvps.org/access/api/api0008.htm
After testing it in a seperate DB several differnt ways, I found it works
just as it says but I wanted to help explain it a little.
Copy the code from the web site and paste it into a new module and name it
as the web site explains. Be sure to compile it before you close it and make
sure you save any changes!! I found two type O's.
After that add a text box to your form. In the text properties call the
function usinf =fousername, the same name you gave the module, and place this
call in both the control source and default vale of the text box properties.
I don't know why you have to have it in both but I couldn't get it to work
anyother way!!
After that open the form in form view and your name or the name of the
logged in person should appear!! Now, depending on your network and IT
support, some users may get errors if their version of access and all its
patches are not up to date, but that is an easy fix!! Best of luck!!
Myron
http://www.mvps.org/access/api/api0008.htm
After testing it in a seperate DB several differnt ways, I found it works
just as it says but I wanted to help explain it a little.
Copy the code from the web site and paste it into a new module and name it
as the web site explains. Be sure to compile it before you close it and make
sure you save any changes!! I found two type O's.
After that add a text box to your form. In the text properties call the
function usinf =fousername, the same name you gave the module, and place this
call in both the control source and default vale of the text box properties.
I don't know why you have to have it in both but I couldn't get it to work
anyother way!!
After that open the form in form view and your name or the name of the
logged in person should appear!! Now, depending on your network and IT
support, some users may get errors if their version of access and all its
patches are not up to date, but that is an easy fix!! Best of luck!!
Myron