<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Resetting a control value</title><link>https://www.infopathdev.com:443/forums/thread/32599.aspx</link><pubDate>Sun, 28 Sep 2008 18:08:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32599</guid><dc:creator>dbaldacchino</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32599.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32599</wfw:commentRss><description>&lt;p&gt;I left the value empty (did not put the double quotation marks) and it&amp;#39;s working for me. I&amp;#39;m using a drop-down list box.&lt;/p&gt;</description></item><item><title>Re: Resetting a control value</title><link>https://www.infopathdev.com:443/forums/thread/32597.aspx</link><pubDate>Sun, 28 Sep 2008 10:03:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32597</guid><dc:creator>srivoleti_95</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32597.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32597</wfw:commentRss><description>&lt;p&gt;Hi Clay,&lt;/p&gt;
&lt;p&gt;I have tried setting the value to &amp;quot;&amp;quot; on a button click as suggested for a list box. but it is not removingt all the items of the list box. Any suggestions?&lt;/p&gt;</description></item><item><title>Re: Resetting a control value</title><link>https://www.infopathdev.com:443/forums/thread/32595.aspx</link><pubDate>Sun, 28 Sep 2008 06:32:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32595</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32595.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32595</wfw:commentRss><description>&lt;p&gt;A rule on LB1 will fire each time it is changed.&lt;/p&gt;
&lt;p&gt;After thinking about it you do not even need to make it conditional.&lt;/p&gt;
&lt;p&gt;Just reset LB2 to null or empty string each time LB1 is changed. If it resets it the first time no matter.&lt;/p&gt;
&lt;p&gt;This would give you what you are looking for.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Resetting a control value</title><link>https://www.infopathdev.com:443/forums/thread/32594.aspx</link><pubDate>Sun, 28 Sep 2008 06:31:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32594</guid><dc:creator>dbaldacchino</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32594</wfw:commentRss><description>&lt;p&gt;Ignore me...your solution works perfectly. It was a lot simpler than&amp;nbsp;I thought! Thanks a lot.&lt;/p&gt;</description></item><item><title>Re: Resetting a control value</title><link>https://www.infopathdev.com:443/forums/thread/32593.aspx</link><pubDate>Sun, 28 Sep 2008 06:27:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32593</guid><dc:creator>dbaldacchino</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32593.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32593</wfw:commentRss><description>&lt;p&gt;Thanks Clay. However I don&amp;#39;t need to test for LB1 being Null, but being changed from a previous value. That doesn&amp;#39;t seem possible with rules.&lt;/p&gt;</description></item><item><title>Re: Resetting a control value</title><link>https://www.infopathdev.com:443/forums/thread/32591.aspx</link><pubDate>Sun, 28 Sep 2008 06:16:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32591</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32591.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32591</wfw:commentRss><description>&lt;p&gt;It is simple to do with rules in InfoPath.&lt;/p&gt;
&lt;p&gt;Create a rule for LB1.&lt;/p&gt;
&lt;p&gt;Make the condition LB2 is not null then set field lb2 to null.&lt;/p&gt;</description></item><item><title>Resetting a control value</title><link>https://www.infopathdev.com:443/forums/thread/32584.aspx</link><pubDate>Fri, 26 Sep 2008 23:45:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32584</guid><dc:creator>dbaldacchino</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32584.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32584</wfw:commentRss><description>&lt;p&gt;I have two drop-down list boxes: LB1 and LB2. LB1 pulls values from an Access table and LB2 then displays a filtered list of options (also pulled from an Access table) based on LB1&amp;#39;s value. So far, so good.&lt;/p&gt;
&lt;p&gt;The issue is that if the user then goes back and changes the value of LB1, now LB2 is set to a potentially wrong value so I would like to reset LB2 when LB1 is changed, so the user is forced to go back and reselect. I know how to achieve this with VBA in Access, but I&amp;#39;m having trouble with VB. Here&amp;#39;s an example in VBA:&lt;/p&gt;
&lt;p&gt;Private Sub lblDisciplineID_AfterUpdate()&lt;/p&gt;
&lt;p&gt;Static DisciplineUPDated As String&lt;br /&gt;If DisciplineUPDated = &amp;quot;&amp;quot; Then DisciplineUPDated = Me.lblDisciplineID.OldValue&lt;/p&gt;
&lt;p&gt;Me.lblDetail_Type.Requery &amp;#39; This refreshes the query that populates the combo box in the Access form&lt;br /&gt;If DisciplineUPDated &amp;lt;&amp;gt; Me.lblDisciplineID.Value Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.lblDetail_Type.Value = Null&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.lblSubfolderID.Value = Null&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisciplineUPDated = Me.lblDisciplineID.Value&lt;br /&gt;End If&lt;br /&gt;Me.lblDetail_Type.SetFocus&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;Any help with how I could do something similar in Infopath with VB (or any other method I might be overlooking) would be greatly appreciated. I&amp;#39;ve already tried using Rules but I can&amp;#39;t seem to find a solution. Thanks!&lt;/p&gt;</description></item></channel></rss>