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.

Newbie questions: question 1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jon Sellers - 25 Nov 2005 22:02 GMT
Just finished F. Scott Barkers "InfoPath 2003". I now have a clue! However,
first specific question:

How do I query an access database for a range of values? Example: I have an
order table in access and I would like to query based on starting and ending
order number, entry date, and customerid. Do I modify the sql in the data
connection or somewhere else?
Franck Dauché - 26 Nov 2005 07:47 GMT
Hi,

You can use C# code behind:

string qry = "MyValue";
ADOAdapterObject oNameTable = (ADOAdapterObject)
thisXDocument.DataAdapters["tblTest"];
oNameTable.Command = string.Format("Select * from tblTest where Test = '" +
qry + "'");
oNameTable.Query();

You just need to modify the SQL statement to fit your case.

Hope that it helps.

Regards,

Franck Dauché

> Just finished F. Scott Barkers "InfoPath 2003". I now have a clue! However,
> first specific question:
[quoted text clipped - 3 lines]
> order number, entry date, and customerid. Do I modify the sql in the data
> connection or somewhere else?
 
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.