My Assistant
![]() ![]() |
|
|
Feb 3 2012, 10:19 AM
Post
#1
|
|
|
UtterAccess Member Posts: 20 |
Please forgive the newbie-ish question. It has been a long time since I have used Access, but my current employer is going to be asking me to put together a 'few simple databases' for her using Access. I can see the train a comin'...
I've purchased a couple of books, and am starting to plug away at home to get myself back up to speed. I like this 2010 version much better than 2003. But I have come across a problem that I know I will have to solve and so far neither the books nor my poking around has solved: What access object can I interrogate to obtain the logged-in userid on the machine that the Access database is running? The network is peer - to - peer and all machines are running windows 7 and require the user to login. Any help or direction that you can give will be greatly appreciated. Tanks! |
|
|
|
Feb 3 2012, 10:29 AM
Post
#2
|
|
|
UtterAccess VIP Posts: 1,451 |
|
|
|
|
Feb 3 2012, 10:38 AM
Post
#3
|
|
|
UtterAccess Member Posts: 20 |
thank you!
|
|
|
|
Feb 3 2012, 09:31 PM
Post
#4
|
|
|
UtterAccess VIP Posts: 1,451 |
Glad to help! (IMG:style_emoticons/default/thumbup.gif)
|
|
|
|
Feb 16 2012, 04:14 PM
Post
#5
|
|
|
UtterAccess Member Posts: 20 |
btw, what is the 64-bit equivalent? the 32-bit solution does not work for 64-bit Access.
|
|
|
|
Feb 16 2012, 04:24 PM
Post
#6
|
|
|
UtterAccess Member Posts: 20 |
and is there any downside to using Environ("UserName")? It would seem to be a much simpler, cleaner solution to the whole issue.
|
|
|
|
Feb 16 2012, 07:38 PM
Post
#7
|
|
|
UtterAccess VIP Posts: 1,451 |
The environment variable is not too reliable. It may be acceptable in situations where security is not important, but can easily be faked to impersonate another user (for instance).
|
|
|
|
Feb 16 2012, 07:42 PM
Post
#8
|
|
|
UtterAccess VIP Posts: 1,451 |
|
|
|
|
Feb 23 2012, 12:36 PM
Post
#9
|
|
|
UtterAccess Member Posts: 20 |
Dan:
If you could view "Part B - Logged In Username In A 64-bit World " and comment I would appreciate it. This problem is ALMOST solved... |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 19th May 2013 - 02:29 AM |