Link to home
Create AccountLog in
Avatar of dataflowjoe
dataflowjoe

asked on

How to find login name

Hi Guys,

I've written an access project database that automatically uses the generic dialog prompt for the users credentials. How can I stop this generic dialog box from appearing so I can use a customised form that asks for the users credentials. I want to store the username in a global variable so the database knows who is logged onto a particular session. There doesn't seem to be a way of knowing who is logged into the project file, unless I'm missing something. Environ$("Username") will give me the windows login, is there something similar that gives me the sqlserver login for the session.

Thanks in advance.
Avatar of EvilPostIt
EvilPostIt
Flag of United Kingdom of Great Britain and Northern Ireland image

SELECT SYSTEM_USER
Correct my if I am wrong but I believe the author is asking how to bypass the dialog box that asks for a password when SQL Server tables are linked into an MS Access database.
ASKER CERTIFIED SOLUTION
Avatar of dataflowjoe
dataflowjoe

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
>>Not enough participation<<
Unfortunately not enough feedback for what should have been a trivial solution in MS Access.
Avatar of dataflowjoe
dataflowjoe

ASKER

Not enough participation