PC LAN Information from within Notes Form

Am conducting a survey using Notes. Is it possible to find out the user’s pc number, LAN IP Address, PCuserLAN ID.

Subject: Here is most of the code you need

I use this in a survey form that I mail out with a bunch of other code but this should do the trick for you. I’m not getting ip address but you should be able to pick that up too.

HTH,

Rob

Sub Postopen(Source As Notesuidocument)

Dim doc As notesdocument

Dim WshNetwork As Variant





Set doc = Source.Document	

If doc.IsNewNote = False Then

	Set WshNetwork = CreateObject("WScript.Network")

	doc.qDomain = WshNetwork.UserDomain

	doc.qComputerName = WshNetwork.ComputerName

	doc.qLanID = WshNetwork.UserName

End If

End Sub