Syntax to use to retrive data from a control in vbscript

H

Haket

To retieve the start date from the Date Picker Control an article pn this
from Forum used the following code

strStartDate = XDocument.DOM.selectSingleNode _
("/my:myFields/my:startDate").text

I am trying to use teh same syntax to write data to a text field in my form.
The form is connected to a database of two tables - namely Table1 and Tabled2.

I have used the follwoing code:

strField1 = XDocument.DOM.selectSingleNode _
("/my:myFields/my:dataFields/d:Table1/d:Table1Item3").text = "abc"

but the following error occurs:
Object required: 'XDocument.DOM.selectSingleNode(...)'
File:script.vbs
Line:23

I guess my synatax for the control path is wrong.
Can anyone please help?
 
K

K.Ramana Reddy

Hi,

Check this one,
strField1 = XDocument.DOM.selectSingleNode
("/my:myFields/my:dataFields/d:Table1/d:Table1Item3").text = "abc"

I hope this will help for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top