Retrieve WinNT login ID?

H

Hafeez Esmail

In my database, the user has the option to export a table
(in excel format cause that's what they're used to).

DoCmd.OutputTo acOutputQuery, "qryCustomMade", _
acFormatXLS, "C:\WINNT\Profiles\" & strUsrId & _
"\Desktop\CustomQuery.xls"

Where strUsrId is a string variable containing the log in
ID he/she uses when loggin into WINNT. This way I don't
have to ask them to type it in.

Thanks!
Hafeez Esmail
 
B

Bruce M. Thompson

In my database, the user has the option to export a table
(in excel format cause that's what they're used to).

DoCmd.OutputTo acOutputQuery, "qryCustomMade", _
acFormatXLS, "C:\WINNT\Profiles\" & strUsrId & _
"\Desktop\CustomQuery.xls"

Where strUsrId is a string variable containing the log in
ID he/she uses when loggin into WINNT. This way I don't
have to ask them to type it in.

See if this works in NT:

API: Get Login name
http://www.mvps.org/access/api/api0008.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top