<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Query with conditions??</title><link>https://www.infopathdev.com:443/forums/thread/1353.aspx</link><pubDate>Fri, 09 Jun 2006 10:55:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1353</guid><dc:creator>rasmus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1353.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1353</wfw:commentRss><description>I've created a form that queries in an access db table. The table contains several fields which needs to be queried, which is no problem. &lt;br /&gt;&lt;br /&gt;The problem occurs when/because the table contains 7 fields named "DAY1", "DAY2"...."DAY7". Thus, before the user of my form runs a query, he/she has to input a date. Hopefully the form will only show results where the date chosen by the person filling out the form matches one of the dates in my table fields "DAY1", "DAY2"...."DAY7". &lt;br /&gt;&lt;br /&gt;I've tried to use the custom code and rules function, whereby the form should only run a query, if there is a match between the day chosen, and one of the dates "DAY1", "DAY2"...."DAY7", but it doesn't work. I suspect the problem occurs because somehow the date chosen by the form user, affects the following query. Thus I've inserted a secondary dataconnection, to separate the query fields and the "chosen date" (secondary dataconnection), but it still doesn't work. &lt;br /&gt;&lt;br /&gt;If the above makes sense, is there an easier way, a form code or something else, which can solve my problem?</description></item></channel></rss>