sashabinkie
Feb 23rd, 2001, 03:30 PM
I have been looking through my books and I've found some good code on the systeminfo but the code that I have doesn't begin with a call to the API. I am trying to get user logon information in an access database switchboard, to validate the user before opening a report, I just can't seem to get the code I have to work.
Dim strOut As String
Dim si As New SystemInfo
strOut = si.UseName & " is logged on " & si.ComputerName
MsgBox strOut
This is the stripped version but I can't get this little ditty to work, where do I find the reference for SystemInfo for this to work???
Dim strOut As String
Dim si As New SystemInfo
strOut = si.UseName & " is logged on " & si.ComputerName
MsgBox strOut
This is the stripped version but I can't get this little ditty to work, where do I find the reference for SystemInfo for this to work???