Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ACC2000: Requery Extended Multi-Select List Box Clears Selections


View products that this article applies to.

Symptoms

List boxes have a property called MultiSelect that enables you to make multiple selections in one control. If the MultiSelect property is set to Extended, any selections that you make are cleared if the list box is requeried. This behavior does not occur if the MultiSelect property of the list box is set to Simple or None.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in Microsoft Access 2000.

↑ Back to the top


More information

Steps to Reproduce Problem

  1. Start Microsoft Access and open any database.
  2. Create a form not based on any table or query, and then save it as MultiSelectTest.
  3. Add a list box control to the form, and then set the following properties:
    RowSourceType: Value List
    RowSource: 1;2;3;4
    MultiSelect: Extended
  4. On the View menu, click Form View, and then select an item or two in the list box by pressing and holding the CONTROL key as you make your selections.
  5. Press CTRL+G to open the Immediate window, type the following line, and then press ENTER:
    Forms![MultiSelectTest]!List0.Requery
    Note that your selections are lost.

↑ Back to the top


References

For more information about the MultiSelect property of a list box, click Microsoft Access Help on the Help menu, type multiselect property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

↑ Back to the top


Keywords: KB208525, kbpending, kbbug

↑ Back to the top

Article Info
Article ID : 208525
Revision : 2
Created on : 6/30/2004
Published on : 6/30/2004
Exists online : False
Views : 271