Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Value from VBScript to InfoPath Form

Status
Not open for further replies.

lshields

Technical User
Nov 16, 2003
20
US
I am running the following VBScript behind a button on an InfoPath Form:

dim UserString
dim Domain
dim WSHNetwork
dim Workstation

Set WSHNetwork = CreateObject("WScript.Network")
UserString = WSHNetwork.UserName
Workstation = WSHNetwork.ComputerName

Obviously I am trying to obtain the current user and workstation name that is accessing the form for validation.

I would like to put the values of UserString and Workstation into fields on my InfoPath form but cannot figure out how to pass them.

Can anyone help me out?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top