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 / November 2005

Tip: Looking for answers? Try searching our database.

How do I query simpleType fields in InfoPath 2003?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WeeblnBob - 16 Nov 2005 15:39 GMT
I'm trying to query a SQL data source using a simpleType field.  Does anyone
know if this is possible?
Franck Dauché - 16 Nov 2005 17:45 GMT
Hi,

Are you looking for something like that:
string qry = "MyValue";  //<----- or from a textbox in IP
ADOAdapterObject oNameTable = (ADOAdapterObject)
thisXDocument.DataAdapters["tblTest"];
oNameTable.Command = string.Format("Select * from tblTest where Test = '" +
qry + "'");
oNameTable.Query();

Hope that it helps.

Regards,

Franck Dauché

> I'm trying to query a SQL data source using a simpleType field.  Does anyone
> know if this is possible?
 
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.