<?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>Problem with using sysdate in infopath</title><link>https://www.infopathdev.com:443/forums/thread/58983.aspx</link><pubDate>Thu, 16 Sep 2010 15:10:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58983</guid><dc:creator>Richie Rich</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58983.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58983</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have just started using Microsoft Infopath last week, I have a small problem regarding only pulling entries from the SQL Server that are todays date and after.&lt;/p&gt;
&lt;p&gt;Scenario is that I have a main data source which my forms submits data into the database, then I have a secondary data source that is a SQL statement that just displays the Test Machine name, Booked Date and Timeslot.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;select &amp;quot;BookingDate&amp;quot;,&amp;quot;TimeSlot&amp;quot;,&amp;quot;TestMachine&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;TestRoomBooking&amp;quot; as &amp;quot;TestRoomBooking&amp;quot; order by &amp;quot;BookingDate&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This then pulls a list of all the bookings from the database.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;All I need is to be able to add a clause onto that statement or somewhere else saying that I only want to show dates that are today&amp;#39;s date and onwards. therefore not displaying old dates that are redundant.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Regards&lt;/p&gt;
&lt;p&gt;Rich&lt;/p&gt;</description></item></channel></rss>