<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; list box</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/list-box/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Thu, 20 Jun 2013 02:09:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Combo Box Selection Locks Form</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/combo-box-selection-locks-form/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/combo-box-selection-locks-form/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 16:08:22 +0000</pubDate>
		<dc:creator>McNitro</dc:creator>
				<category><![CDATA[Access 2003]]></category>
		<category><![CDATA[combo box]]></category>
		<category><![CDATA[list box]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a combo box that locks/corrupts all of the controls on a Access 2003 form.  The locking symptom only seems to occur when the list index is greater than 0. The problem control may not be the combo box.  It may be one of two list boxes that are affected by the combo box&#8217;s &#8216;after update&#8217; [...]]]></description>
				<content:encoded><![CDATA[<p>I have a combo box that locks/corrupts all of the controls on a Access 2003 form.  The locking symptom only seems to occur when the list index is greater than 0.<br/><br/> The problem control may not be the combo box.  It may be one of two list boxes that are affected by the combo box&#8217;s &#8216;after update&#8217; event.<br/><br/> In the combo box&#8217;s &#8216;after update&#8217; procedure, the data for the two list boxes is updated according to the combo box selection. To update the combo boxes, I have code that first clears all the current items out of each list box.<br/><br/> The code to clear each list box is as such:<br/><br/>
<pre><br/><br/>      intListCount = Me.lstScheduled.ListCount     intListIndex = intListCount - 1     Do Until intListIndex = -1         Me.lstScheduled.RemoveItem (intListIndex)         intListIndex = intListIndex - 1     Loop<br/><br/>     intListCount = Me.lstAvailableTests.ListCount     intListIndex = intListCount - 1     Do Until intListIndex = -1         Me.lstAvailableTests.RemoveItem (intListIndex)         intListIndex = intListIndex - 1     Loop<br/><br/> </pre>
<p><br/><br/> Clearing the first list box seems to cause the corruption.  If I comment out that portion of the code, the problem seems to go away.<br/><br/> I don&#8217;t understand why this is happening, because both sets of code are identical, but only the first seems to cause the issue.  I have renamed the problem list box (lstScheduled). I have deleted it and re-created it. I have also renamed and re-created the combo box.<br/><br/> Please help me understand what is going on here.<br/><br/> Thanks!<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/combo-box-selection-locks-form/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/12 queries in 0.017 seconds using memcached
Object Caching 315/326 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 06:49:14 -->