
September 11th, 2003, 11:38 PM
|
|
Junior Member
|
|
Join Date: Sep 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Access 2000 Data Access Page Get Username
I have a Data Access Page that works fine. I have a button on it which also works fine and populates a field when clicked.
Problem is I want to populate the field with the current logged on user. I could get this working using WinNTSystemInfo but only when I ran the page inside Access, it wouldn't work when I ran the page on the web server.
There seems to be plenty of advice on how to do this with ASP pages and everything else but not with DAP.
I have been looking at:-
Request.ServerVariables - but I think that only works with ASP
AdvAPI32.dll - Used Declare Function but i think that only works with VB not VBScript. Have also tried using it with DLLImport but that is always talked about in a .net context.
All PC's on our Intranet are Win2K running IE 5+
Any ideas
Thanks
Richard
|