S
Susan
I am trying to retrieve the user's network id on load of a form.This form is
linked to an Access database called OSS_Calls.mdb - table name OSS Calls
field name to update is Operator. I have my script language set to VB script
on the form.
I have tried different ways of passing the Operator field but keep getting
an "invalid character" on load.
I got this code from a post on this site.
Sub XDocument_OnLoad(eventObj
XDocument.DOM.selectSingleNode("my:myfields/my:datafields/my:Operator").text = Environment.UserName
End Sub
scenarios I have tried are
("my:myfields/my:Operator").text
("my:myfields/my:datafields/my:Operator").text
("my:myfields/my:datafields/d:OSS_Calls/my:Operator").text
("my:myfields/my:datafields/d:OSS_Calls/:Operator").text
I would appreciate anyone's input on what I am doing wrong, or if this will
work.
linked to an Access database called OSS_Calls.mdb - table name OSS Calls
field name to update is Operator. I have my script language set to VB script
on the form.
I have tried different ways of passing the Operator field but keep getting
an "invalid character" on load.
I got this code from a post on this site.
Sub XDocument_OnLoad(eventObj
XDocument.DOM.selectSingleNode("my:myfields/my:datafields/my:Operator").text = Environment.UserName
End Sub
scenarios I have tried are
("my:myfields/my:Operator").text
("my:myfields/my:datafields/my:Operator").text
("my:myfields/my:datafields/d:OSS_Calls/my:Operator").text
("my:myfields/my:datafields/d:OSS_Calls/:Operator").text
I would appreciate anyone's input on what I am doing wrong, or if this will
work.