D
dp0100
Hi MS,
My goal is to capture the network-id and pass that to Access for
validation in my InfoPath form. I have a field in my project table
(Access 97 SR-2) to capture this- User-id.
I have researched numerous sites and found the below script:
{
var objWscript;
objWscript = new ActiveXObject("WScript.Network");
XDocument.UI.Alert(objWscript.username);
}
I just pasted this code - Tools --> programming - script editor -
right below the namespacesDefinition section.
When I preview the form, the Active x warning appears, click ok and it
is correctly displaying my network user-id. However, how do I get this
information into my form to pass back to Access??
I tried the Add/Remove Custom Controls but not sure what I'm looking
for - couldn't find anything resembling the code above to choose -
then it was asking me about .cab files?
I am in no way a programmer and need some help as this is my last
hurdle to get this project up and running. Can someone please help or
direct me where I can get some information on this subject?
Too bad I'm not running InfoPath 07 - I read that userName() is a
built in function now! How easy is that!
Thanks for any information you can provide
David in Dallas, TX
My goal is to capture the network-id and pass that to Access for
validation in my InfoPath form. I have a field in my project table
(Access 97 SR-2) to capture this- User-id.
I have researched numerous sites and found the below script:
{
var objWscript;
objWscript = new ActiveXObject("WScript.Network");
XDocument.UI.Alert(objWscript.username);
}
I just pasted this code - Tools --> programming - script editor -
right below the namespacesDefinition section.
When I preview the form, the Active x warning appears, click ok and it
is correctly displaying my network user-id. However, how do I get this
information into my form to pass back to Access??
I tried the Add/Remove Custom Controls but not sure what I'm looking
for - couldn't find anything resembling the code above to choose -
then it was asking me about .cab files?
I am in no way a programmer and need some help as this is my last
hurdle to get this project up and running. Can someone please help or
direct me where I can get some information on this subject?
Too bad I'm not running InfoPath 07 - I read that userName() is a
built in function now! How easy is that!
Thanks for any information you can provide
David in Dallas, TX