<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Query</title><link>https://www.infopathdev.com:443/forums/thread/6271.aspx</link><pubDate>Mon, 25 Oct 2004 21:01:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6271</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6271.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6271</wfw:commentRss><description>I'm glad you got it working! Thanks for sharing the finished code with us!&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: Query</title><link>https://www.infopathdev.com:443/forums/thread/6270.aspx</link><pubDate>Mon, 25 Oct 2004 15:28:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6270</guid><dc:creator>BrownR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6270.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6270</wfw:commentRss><description>Heres the code i put behind my search. This takes both numbers that im searching between and displays the records inbetween to be changed.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;function CTRL2_8::OnClick(eventObj)&lt;br /&gt;{ &lt;br /&gt;  // Get the default SQL command for the form.&lt;br /&gt;  var strOrigSQLCommand = XDocument.QueryAdapter.Command;&lt;br /&gt;&lt;br /&gt;  var queryCase = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:queryFields/q:Master");&lt;br /&gt;&lt;br /&gt;  var strSearch1 = XDocument.DOM.selectSingleNode("//dfs:myFields/my:Search1").text; &lt;br /&gt;  var strSearch2 = XDocument.DOM.selectSingleNode("//dfs:myFields/my:Search2").text;&lt;br /&gt;  &lt;br /&gt;  // Ask InfoPath to construct an SQL command that is based on all other field values.&lt;br /&gt;  var strMySQLCommand = XDocument.QueryAdapter.BuildSQLFromXMLNodes(queryCase);&lt;br /&gt;&lt;br /&gt;    var strCase = queryCase.selectSingleNode("@Case").text;&lt;br /&gt;  queryCase.selectSingleNode("@Case").text = "";&lt;br /&gt;  &lt;br /&gt;  // Construct the full query string.&lt;br /&gt;  var strSQLQuery = strOrigSQLCommand;&lt;br /&gt;      strSQLQuery = strSQLQuery + " WHERE  ([Case] &amp;gt;= '" + strSearch1 + "') AND ([Case] &amp;lt;='" + strSearch2 + "')";&lt;br /&gt;  var Test = XDocument.DOM.selectSingleNode&lt;br /&gt;  // This is the query.&lt;br /&gt;  //XDocument.UI.Alert(strSQLQuery);&lt;br /&gt;&lt;br /&gt;  // Run the query.&lt;br /&gt;  XDocument.QueryAdapter.Command = strSQLQuery;&lt;br /&gt;  XDocument.Query();&lt;br /&gt;&lt;br /&gt;  }&lt;/pre&gt;</description></item><item><title>Re: Query</title><link>https://www.infopathdev.com:443/forums/thread/6269.aspx</link><pubDate>Thu, 21 Oct 2004 18:15:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6269</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6269</wfw:commentRss><description>I'm not much of a SQL person yet, and I'm assuming you are using SQL to store these 130,000 records.&lt;br /&gt;&lt;br /&gt;But it seems to me that if you have the beginning number and ending number for the range you want that you should be able to build your query in code and then call the Query() method to retrieve your records.&lt;br /&gt;&lt;br /&gt;I.E. query = * WHERE CASE &amp;gt;= TEXT1 AND CASE &amp;lt;= TEXT2 (or something to that effect).&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: Query</title><link>https://www.infopathdev.com:443/forums/thread/6268.aspx</link><pubDate>Wed, 20 Oct 2004 19:46:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6268</guid><dc:creator>BrownR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6268.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6268</wfw:commentRss><description>I have a form that i want to retrieve maybe 50- 100 records out of 130,000. each record has a "Case" number. I want to be able to query from a begining case number&amp;lt;text1&amp;gt; to case number &amp;lt;text2&amp;gt;. And have it return the 75-100 records to be amended.</description></item><item><title>Re: Query</title><link>https://www.infopathdev.com:443/forums/thread/6267.aspx</link><pubDate>Wed, 20 Oct 2004 19:42:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6267</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6267.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6267</wfw:commentRss><description>Please provide more details. I don't understand what you mean by "query between two text boxes".&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Query</title><link>https://www.infopathdev.com:443/forums/thread/4478.aspx</link><pubDate>Wed, 20 Oct 2004 19:31:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4478</guid><dc:creator>BrownR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4478.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4478</wfw:commentRss><description>I need to query between 2 text boxs. There both going to have nothing but number in either one. How would i go about doing this? Ive tried to have custom text boxs but i'm not sure how to wuery between the two numbers...</description></item></channel></rss>