<?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>Qdabra Database Accelerator</title><link>https://www.infopathdev.com:443/forums/61.aspx</link><description>Qdabra Database Accelerator (DBXL) simplifies connecting InfoPath to SQL Server and SharePoint for codeless storage, permissions, workflow, and reporting on InfoPath forms. This forum also supports users of Qdabra's WSSP.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53352.aspx</link><pubDate>Fri, 02 Apr 2010 18:16:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53352</guid><dc:creator>imstac</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53352.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53352</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy, that worked!&lt;/p&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53351.aspx</link><pubDate>Fri, 02 Apr 2010 17:34:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53351</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53351</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;If the rule logic isn&amp;#39;t too complicated, it may be simplest to just put the exact same set of rules on both fields.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53350.aspx</link><pubDate>Fri, 02 Apr 2010 17:23:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53350</guid><dc:creator>imstac</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53350.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53350</wfw:commentRss><description>&lt;p&gt;Rock On!&amp;nbsp; Got it working.&amp;nbsp; Thanks so much Jimmy, Hillary and Ernesto!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I just have one other question.&amp;nbsp; The value of my field &amp;#39;estno&amp;#39; depends on two filters w/n&amp;nbsp;the querydb, &amp;#39;year&amp;#39; and &amp;#39;branchoffice&amp;#39;.&amp;nbsp; I have put all of my actions for assigning&amp;nbsp;my &amp;#39;estno&amp;#39;&amp;nbsp;value in my &amp;#39;year&amp;#39; rules.&amp;nbsp; If I change the year field my &amp;#39;estno&amp;#39; value will update; however if I change just the &amp;#39;branchoffice&amp;#39; value and leave the year value as is my &amp;#39;estno&amp;#39; value does not update.&amp;nbsp; How/Where do I put my rule actions to where if either the branch office or year field changes the value of my &amp;#39;estno&amp;#39; field will requery?&lt;/p&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53347.aspx</link><pubDate>Fri, 02 Apr 2010 15:12:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53347</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53347.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53347</wfw:commentRss><description>&lt;p&gt;You&amp;#39;ll need to modify the first action in the rule (from the screenshot you included above). Right now you have: &lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;Next_Estimate = concat(&amp;quot;&amp;lt;query...&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;But you need&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;queryxml = concat(&amp;quot;&amp;lt;query...&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Where queryxml is a node in the secondary data source you created to query the database (NextEstimateNumber).&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53346.aspx</link><pubDate>Fri, 02 Apr 2010 15:02:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53346</guid><dc:creator>imstac</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53346.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53346</wfw:commentRss><description>&lt;p&gt;How do I set the value of queryxml? &lt;/p&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53345.aspx</link><pubDate>Fri, 02 Apr 2010 14:50:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53345</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53345.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53345</wfw:commentRss><description>&lt;p&gt;You&amp;#39;ll need to change the first action to set the &lt;i&gt;&lt;b&gt;queryxml &lt;/b&gt;&lt;/i&gt;node in the secondary data connection. The execution steps then become:&lt;/p&gt;&lt;p&gt;1. Set the value of queryxml of the the query data connection&lt;/p&gt;&lt;p&gt;2. Execute the query data connection &lt;/p&gt;&lt;p&gt;3. Set the desired field to the result obtained from the query data connection &lt;/p&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53344.aspx</link><pubDate>Fri, 02 Apr 2010 14:20:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53344</guid><dc:creator>imstac</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53344.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53344</wfw:commentRss><description>&lt;p&gt;Okay, now I&amp;#39;m really confused.&amp;nbsp; So I have attached a snapshot of my&amp;nbsp;Rules actions&amp;nbsp;in my estyear field&amp;nbsp;:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;First Action: &amp;quot;It should not be setting a field in the main data source, but a field in the secondary data connection you created to QueryDB&amp;quot; &lt;/p&gt;
&lt;p&gt;So am I supposed to make the Next_Estimate (this is the field in my data connection in which I want to populate my estno field) equal to the concat query?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Like this:&lt;/strong&gt; Next_Estimate = concat(&amp;quot;&amp;lt;query database=&amp;#39;#Marketing_Resumes#&amp;#39; table=&amp;#39;MaxEstimateNumber_Web&amp;#39; &amp;gt;&amp;lt;columns&amp;gt;&amp;lt;column name=&amp;#39;Branch_OfficeID&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;Estimating_Group&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;Estimate_Year&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;Next_Estimate&amp;#39;/&amp;gt;&amp;lt;/columns&amp;gt;&amp;lt;filter&amp;gt;&amp;lt;and&amp;gt;&amp;lt;eq&amp;gt;&amp;lt;column name=&amp;#39;Branch_OfficeID&amp;#39;/&amp;gt;&amp;lt;value&amp;gt;&amp;quot;, branchoffice, &amp;quot;&amp;lt;/value&amp;gt;&amp;lt;/eq&amp;gt;&amp;lt;eq&amp;gt;&amp;lt;column name=&amp;#39;Estimate_Year&amp;#39;/&amp;gt;&amp;lt;value&amp;gt;&amp;quot;, ., &amp;quot;&amp;lt;/value&amp;gt;&amp;lt;/eq&amp;gt;&amp;lt;/and&amp;gt;&amp;lt;/filter&amp;gt;&amp;lt;/query&amp;gt;&amp;quot;)&amp;nbsp;&amp;nbsp;&amp;nbsp; The period between the value tags after Estimate_Year are for estyear.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Second Action: I selected Query a Data Connection and selected my NextEstimateNumber&lt;/p&gt;
&lt;p&gt;Third Action: I&amp;nbsp;set my estno field = Next_Estimate &lt;/p&gt;
&lt;p&gt;An estimate number is returned but it is incorrect.&amp;nbsp; It looks like it is just pulling the&amp;nbsp;Next_Estimate value from the first record in the my database table.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Not sure what I&amp;#39;m missing here. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53341.aspx</link><pubDate>Fri, 02 Apr 2010 13:12:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53341</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53341.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53341</wfw:commentRss><description>&lt;p&gt;For more information on using QueryDB, check out these links:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.infopathdev.com/files/folders/web_methods/entry30952.aspx"&gt;QueryDB User Manual&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.infopathdev.com/files/folders/web_methods/entry32474.aspx"&gt;Implement Static and Dynamic queries using QueryDB&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53333.aspx</link><pubDate>Fri, 02 Apr 2010 00:57:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53333</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53333.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53333</wfw:commentRss><description>&lt;p&gt;Your &lt;strong&gt;first&lt;/strong&gt; action needs to be the one that sets the queryXml field. It should not be setting a field in the main data source, but a field in the secondary data connection you created to QueryDB. Your &lt;strong&gt;second&lt;/strong&gt; action runs the query. At that point, your secondary data source should have correct, filtered data in it. What you are doing with the two actions is first setting a query node in the secondary data connection to the correct xml for the query you want to run. Then you run the query to get your data back.&lt;/p&gt;
&lt;p&gt;As far as your if statement, I&amp;#39;d think you could do that in the same set of rules, just add conditions to the rule -- if there are no rows returned by your query, do one thing, if there are rows, do something else...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53332.aspx</link><pubDate>Thu, 01 Apr 2010 22:58:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53332</guid><dc:creator>imstac</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53332.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53332</wfw:commentRss><description>&lt;p&gt;Thanks Hilary.&lt;/p&gt;
&lt;p&gt;Okay, so I clicked the Rules button on my&amp;nbsp;estyear field and&amp;nbsp;then clicked Set Action&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I selected Query&amp;nbsp;using a data connection and then selected&amp;nbsp;my data connection&lt;/p&gt;
&lt;p&gt;Then I clicked Set Action again and chose Set Field&amp;#39;s Value. I pasted in the code that Jimmy helped me with and made sure I didn&amp;#39;t have any errors.&lt;/p&gt;
&lt;p&gt;When I previewed the form instead of showing the correct value it actually showed the code that Jimmy gave me.&amp;nbsp; Do I have a quote wrong or something?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Also, I need to do an if statement with the value.&amp;nbsp; If the query returns a&amp;nbsp;null value (meaning that there is no record for that office and year combination) then I have to create the estimate number (the first digit of the estimate number will be based on the branch office they choose and the last 2 digits will be 01).&amp;nbsp; Is it possible to accomplish this? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53329.aspx</link><pubDate>Thu, 01 Apr 2010 22:30:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53329</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53329.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53329</wfw:commentRss><description>&lt;p&gt;Hi, Stacie:&lt;/p&gt;
&lt;p&gt;To use a QueryDB query that takes advantage of values in your form, set up the data connection with a simple query, like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;query database=&amp;#39;#Marketing_Resumes#&amp;#39; table=&amp;#39;MaxEstimateNumber_Web&amp;#39; &amp;gt;&amp;lt;columns&amp;gt;&amp;lt;column name=&amp;#39;Branch_OfficeID&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;Estimating_Group&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;Estimate_Year&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;Next_Estimate&amp;#39;/&amp;gt;&amp;lt;/columns&amp;gt;&amp;lt;/query&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You can deselect the checkbox on the last screen of the data connection wizard that asks whether the query should be run when the form opens.&lt;/p&gt;
&lt;p&gt;Then, in a rule (on one of the fields you wish to use as a parameter, perhaps, or a button, whatever makes sense in your form) you can set the queryXml node for your data connection to a formula with a concat, like Jimmy described, that adds your filter with your values. The second action for the rule would be to run the query. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53319.aspx</link><pubDate>Thu, 01 Apr 2010 19:42:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53319</guid><dc:creator>imstac</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53319.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53319</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hmmm...I was entering this into the value of my data connection.&amp;nbsp; Is this not where I&amp;#39;m supposed to enter this?&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53317.aspx</link><pubDate>Thu, 01 Apr 2010 19:34:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53317</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53317.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53317</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Are you perhaps using these queries in the Add Data Connection Wizard?&amp;nbsp; In the wizard, you should be using the simpler query that QueryBuilder provides for that purpose.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53316.aspx</link><pubDate>Thu, 01 Apr 2010 19:25:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53316</guid><dc:creator>imstac</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53316.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53316</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks Jimmy.&amp;nbsp; I got a couple of different errors.&lt;/p&gt;&lt;p&gt;My view fields are Branch_OfficeID and Estimate_Year.&amp;nbsp; My filter fields in my form are named &amp;#39;branchoffice&amp;#39; and &amp;#39;estyear&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;First, I tried the following:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;query database=&amp;#39;#Marketing_Resumes#&amp;#39; table=&amp;#39;MaxEstimateNumber_Web&amp;#39; &amp;gt;&amp;lt;columns&amp;gt;&amp;lt;column name=&amp;#39;Branch_OfficeID&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;Estimating_Group&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;Estimate_Year&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;Next_Estimate&amp;#39;/&amp;gt;&amp;lt;/columns&amp;gt;&amp;lt;filter&amp;gt;&amp;lt;and&amp;gt;&amp;lt;eq&amp;gt;&amp;lt;column name=&amp;#39;Branch_OfficeID&amp;#39;/&amp;gt;&amp;lt;value&amp;gt;&amp;quot;, branchoffice, &amp;quot;&amp;lt;/value&amp;gt;&amp;lt;/eq&amp;gt;&amp;lt;eq&amp;gt;&amp;lt;column name=&amp;#39;Estimate_Year&amp;#39;/&amp;gt;&amp;lt;value&amp;gt;&amp;quot;,estyear, &amp;quot;&amp;lt;/value&amp;gt;&amp;lt;/eq&amp;gt;&amp;lt;/and&amp;gt;&amp;lt;/filter&amp;gt;&amp;lt;/query&amp;gt;&lt;/p&gt;&lt;p&gt;I got an error that it could not convert varchar branchoffice to int.&amp;nbsp; I checked my branch office dropdown list and changed the data type to integer but this didn&amp;#39;t make a difference.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I then tried:&lt;/p&gt;&lt;p&gt;&amp;nbsp;concat(&amp;quot;&amp;lt;query database=&amp;#39;#Marketing_Resumes#&amp;#39; table=&amp;#39;MaxEstimateNumber_Web&amp;#39; &amp;gt;&amp;lt;columns&amp;gt;&amp;lt;column name=&amp;#39;Branch_OfficeID&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;Estimating_Group&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;Estimate_Year&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;Next_Estimate&amp;#39;/&amp;gt;&amp;lt;/columns&amp;gt;&amp;lt;filter&amp;gt;&amp;lt;and&amp;gt;&amp;lt;eq&amp;gt;&amp;lt;column name=&amp;#39;Branch_OfficeID&amp;#39;/&amp;gt;&amp;lt;value&amp;gt;&amp;quot;,branchoffice, &amp;quot;&amp;lt;/value&amp;gt;&amp;lt;/eq&amp;gt;&amp;lt;eq&amp;gt;&amp;lt;column name=&amp;#39;Estimate_Year&amp;#39;/&amp;gt;&amp;lt;value&amp;gt;&amp;quot;,estyear, &amp;quot;&amp;lt;/value&amp;gt;&amp;lt;/eq&amp;gt;&amp;lt;/and&amp;gt;&amp;lt;/filter&amp;gt;&amp;lt;/query&amp;gt;&amp;quot;)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I used this one I got the error: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&amp;gt; System.ArgumentException: Invalid parameter&lt;br /&gt;Parameter name: queryXml ---&amp;gt; System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Custom code best option for stored procedure?</title><link>https://www.infopathdev.com:443/forums/thread/53315.aspx</link><pubDate>Thu, 01 Apr 2010 18:59:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53315</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53315.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53315</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;QueryBuilder should be able to help you build the query, but essentially you would use something like:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;concat(&amp;quot;&amp;lt;query database=&amp;#39;&lt;u&gt;&lt;b&gt;databasename&lt;/b&gt;&lt;/u&gt;&amp;#39; table=&amp;#39;&lt;u&gt;&lt;b&gt;viewname&lt;/b&gt;&lt;/u&gt;&amp;#39;&amp;gt;&amp;lt;filter&amp;gt;&amp;lt;and&amp;gt;&amp;lt;eq&amp;gt;&amp;lt;column name=&amp;#39;&lt;u&gt;&lt;b&gt;office&lt;/b&gt;&lt;/u&gt;&amp;#39;/&amp;gt;&amp;lt;value&amp;gt;&amp;quot;, &lt;u&gt;&lt;i&gt;officeNumber&lt;/i&gt;&lt;/u&gt;, &amp;quot;&amp;lt;/value&amp;gt;&amp;lt;/eq&amp;gt;&amp;lt;eq&amp;gt;&amp;lt;column name=&amp;#39;&lt;u&gt;&lt;b&gt;year&lt;/b&gt;&lt;/u&gt;&amp;#39;/&amp;gt;&amp;lt;value&amp;gt;&amp;quot;, &lt;i&gt;&lt;u&gt;year&lt;/u&gt;&lt;/i&gt;, &amp;quot;&amp;lt;/value&amp;gt;&amp;lt;/eq&amp;gt;&amp;lt;/and&amp;gt;&amp;lt;/filter&amp;gt;&amp;lt;/query&amp;gt;&amp;quot;)&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Here you would need to replace the &lt;u&gt;&lt;b&gt;bold underlined&lt;/b&gt;&lt;/u&gt; parts with the actual names, and put references to your fields in the &lt;i&gt;&lt;u&gt;underlined italicised&lt;/u&gt;&lt;/i&gt; parts. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>