Results 1 to 3 of 3

Thread: How to: SystemInfo

  1. #1
    sashabinkie
    Guest
    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???

  2. #2
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    Do you mean MS SysInfo control?

  3. #3
    Guest

    Code from Dan appleman

    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width