PDA

Click to See Complete Forum and Search --> : How to: SystemInfo


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???

Mad Compie
Feb 24th, 2001, 07:55 AM
Do you mean MS SysInfo control?

Feb 26th, 2001, 07:11 AM
Mad Compie, not quite sure of anything I have the VBA developer's handbook and Dan Appleman's visual basic programmer's guide to the API. There is similar code in each book but neither begins with an api call and my vb6.0 complier doesn't respond to the key word SystemInfo which both books cite. So I just can't get this code to function and am not quite sure why, being a novice in the world of VB, any advise would be greatly appreciated!