<?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: qurying using date ranges</title><link>https://www.infopathdev.com:443/forums/thread/7404.aspx</link><pubDate>Mon, 08 Aug 2005 19:56:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7404</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7404.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7404</wfw:commentRss><description>Yes it is possible, you just need to change the command of the dataconnection if you want to change the query with which you getting the data from DB.&lt;br /&gt;Here is how you can change the query of a DB data connection in code&lt;br /&gt;&lt;br /&gt;ADOAdapterObject oAdapter = (ADOAdapterObject) thisXDocument.DataAdapters["DatabaseConnectioName"];&lt;br /&gt;&lt;br /&gt;//Here you can write any code that you want.&lt;br /&gt;oAdapter.Command = string.Format("select * from table1 where date1 &amp;gt; date2 and date3 &amp;lt; date2");&lt;br /&gt;oAdapter.Query();&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>qurying using date ranges</title><link>https://www.infopathdev.com:443/forums/thread/4838.aspx</link><pubDate>Mon, 08 Aug 2005 18:15:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4838</guid><dc:creator>r10701</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4838.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4838</wfw:commentRss><description>I have a form connected to an access database. Is it possible to query information using multiple date ranges?</description></item></channel></rss>