B
Bob P
I'm have trouble with selectSingleNode...
If my data source looks like
myFields
FormData
VendorName
VendorPhone
then DummyString =
XDocument.DOM.selectSingleNode("/my:myFields/my:FormData/my:VendorName").text
works as expected.
If I create the form from a data connection, then my data source looks
like:
myFields
queryFields
dataFields
FormData
VendorName
VendorPhone
and
XDocument.DOM.selectSingleNode("/my:myFields/my:FormData/my:VendorName").text
does NOT work - using vbscript, it gives an error of Object required:
'XDocument.DOM.selectSingleNode(...)'
What am I doing wrong? How do I select a node when I create a from a
data connection?
If my data source looks like
myFields
FormData
VendorName
VendorPhone
then DummyString =
XDocument.DOM.selectSingleNode("/my:myFields/my:FormData/my:VendorName").text
works as expected.
If I create the form from a data connection, then my data source looks
like:
myFields
queryFields
dataFields
FormData
VendorName
VendorPhone
and
XDocument.DOM.selectSingleNode("/my:myFields/my:FormData/my:VendorName").text
does NOT work - using vbscript, it gives an error of Object required:
'XDocument.DOM.selectSingleNode(...)'
What am I doing wrong? How do I select a node when I create a from a
data connection?