<?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>Re: Need to choose record from database</title><link>https://www.infopathdev.com:443/forums/thread/32857.aspx</link><pubDate>Mon, 06 Oct 2008 22:21:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32857</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32857.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32857</wfw:commentRss><description>&lt;p&gt;You have a few choices. One of them is changing your form&amp;#39;s SQL query in code before running it to make it dynamic -- that is, to add a &amp;quot;Where&amp;quot; clause that includes the information typed in your text box. Another is to build or buy a web service. A third choice&amp;nbsp;would be to go ahead and return all the rows when you run the query, but to conditionally format your table to only show the rows where (for example) the first name field begins with the value in your text box.&lt;/p&gt;
&lt;p&gt;To conditionally format your table, right click the table and select conditional formatting (I think if you are using IP2003, you have to go into the table properties). Add a new condition, and select the field from the table you wish to match on, then &amp;quot;begins with&amp;quot;, then the text field you are filling out with the value to compare to.&lt;/p&gt;</description></item><item><title>Re: Need to choose record from database</title><link>https://www.infopathdev.com:443/forums/thread/32853.aspx</link><pubDate>Mon, 06 Oct 2008 19:37:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32853</guid><dc:creator>johnmacd</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32853.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32853</wfw:commentRss><description>&lt;p&gt;Thanks, but I dont know SQL.&amp;nbsp; Now I&amp;#39;m totally lost.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;One problem I&amp;#39;m having right now is when I use the &amp;quot;Run Query&amp;quot; button it returns all records in the database.&amp;nbsp; I&amp;#39;d like to be able to narrow down the results based off a partial name match.&amp;nbsp; And then I would like to be able to choose that one record.&lt;/p&gt;</description></item><item><title>Re: Need to choose record from database</title><link>https://www.infopathdev.com:443/forums/thread/32851.aspx</link><pubDate>Mon, 06 Oct 2008 18:34:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32851</guid><dc:creator>santhoshp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32851</wfw:commentRss><description>Hi johnmacd,&lt;br /&gt;&lt;br /&gt;While taking the data connection to Data base, after selecting the Data base you will find one button “Edit SQL” in Data connection Wizard. Click that button and edit the SQL as per your requirement, then test your SQL statement by clicking on ‘Test SQL Statement’ button.&lt;br /&gt;&lt;br /&gt;In this way you can select the records by using where condition in SQL statement.</description></item><item><title>Need to choose record from database</title><link>https://www.infopathdev.com:443/forums/thread/32840.aspx</link><pubDate>Mon, 06 Oct 2008 13:46:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32840</guid><dc:creator>johnmacd</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32840</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m fairly new to IP, but I&amp;#39;m fumbling along.&amp;nbsp; I now have a question.&lt;/p&gt;
&lt;p&gt;An example of the 2 records I am trying to get from the db:&lt;/p&gt;
&lt;p&gt;Joe Smith&lt;/p&gt;
&lt;p&gt;123 Main Street&lt;/p&gt;
&lt;p&gt;Anytown, USA&lt;/p&gt;
&lt;p&gt;and &lt;/p&gt;
&lt;p&gt;Joe Smith&lt;/p&gt;
&lt;p&gt;789 Main Street&lt;/p&gt;
&lt;p&gt;Anytown, USA&lt;/p&gt;
&lt;p&gt;what I am trying to do is query the db to display only these two records to display when I type in a portion of the name.&amp;nbsp; ie Joe&lt;/p&gt;
&lt;p&gt;and then I need to select one of these records to display on the form.&amp;nbsp; And make the other one disappear.&amp;nbsp; (disappear on the form, not the database)&lt;/p&gt;
&lt;p&gt;Currently when I query the database I get all records listed.&amp;nbsp; I am using a repeating section.&amp;nbsp; I&amp;#39;m not sure if this is even the correct route.&lt;/p&gt;</description></item></channel></rss>