Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / July 2007

Tip: Looking for answers? Try searching our database.

Syntax to use to retrive data from a control in vbscript

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Haket - 06 Jun 2007 17:33 GMT
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.Ramana Reddy - 03 Jul 2007 08:20 GMT
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.
Signature

k.Ramana Reddy
http://www.autonomysystems.com

> To retieve the start date from the Date Picker Control an article pn this
> from Forum used the following code
[quoted text clipped - 17 lines]
> I guess my synatax for the control path is wrong.
> Can anyone please help?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.