List box not populating fully.

Ask a Question related to Microsoft Access, Design and Development.

  1. #1

    Default List box not populating fully.

    Hi all,

    I have encountered a very strange problem on one of my
    list boxes. When I open the form it is on, the listbox
    populates correctly based on the query source. One of the
    parameters in the query is a combo box on the same form
    which is used as a filter by means of the after update
    event and list box's requery method.

    Although it is correct when the form first opens, each
    subsequent requery only populates the listbox until the
    bottom of the listbox is reached then stops. ie - where
    it should keep populating (thus requiring a scrollbar), it
    doesn't.

    Any ideas?

    Thanks,
    Ryan
    Ryan Guest

  2. Similar Questions and Discussions

    1. Populating a <mx:List> with XML
      I am trying to do a simple list population with a series of names from a local XML file. I'm looking for direction regarding how to pull my element...
    2. Error populating list
      Hi! I have a document with two listboxes, one called "lista_firenze" and the other called "lista_toscana". The "lista_toscana" has no problem, the...
    3. Populating an array with a list of values
      I have performed a cfhttp request, the results of which are in a variable called FoundString. Found String consists of a list of website links, I...
    4. Populating three list boxes from the database
      Can anybody help? I need to have three list boxes automatically populating each other, (ie when region is selected from the first listbox, it will...
    5. Dynamical populating a list that can be used as drop down list
      Hi, I have a solution in which a person can be a member of one or more groups. In this case the groups are those used in the protection schema of...
  3. #2

    Default Re: List box not populating fully.

    how are you changing the listbox in the afterupdate event?
    are you doing anything with Filters?

    On Wed, 16 Jul 2003 06:45:19 -0700, "Ryan" <kalsonik@hotmail.com>
    wrote:
    >Hi all,
    >
    >I have encountered a very strange problem on one of my
    >list boxes. When I open the form it is on, the listbox
    >populates correctly based on the query source. One of the
    >parameters in the query is a combo box on the same form
    >which is used as a filter by means of the after update
    >event and list box's requery method.
    >
    >Although it is correct when the form first opens, each
    >subsequent requery only populates the listbox until the
    >bottom of the listbox is reached then stops. ie - where
    >it should keep populating (thus requiring a scrollbar), it
    >doesn't.
    >
    >Any ideas?
    >
    >Thanks,
    >Ryan
    Bruce Loving Guest

  4. #3

    Default Re: List box not populating fully.

    Yes ... this is how it works:

    Combo boxes are used to set the filter parameters. When
    any of the combo boxes are changed, the afterupdate event
    of the combo box activates the listbox.requery. The list
    box is based on a query that uses the value of the combo
    boxes as criteria for filtering. Note: I am not using
    the filter property of the form in any way. Just the
    WHERE clause in the SQL.

    I have programmed other listbox controls in the db in a
    similar fashion ... this is the first time the list box
    has behaved poorly.

    >-----Original Message-----
    >how are you changing the listbox in the afterupdate
    event?
    >are you doing anything with Filters?
    >
    >On Wed, 16 Jul 2003 06:45:19 -0700, "Ryan"
    <kalsonik@hotmail.com>
    >wrote:
    >
    >>Hi all,
    >>
    >>I have encountered a very strange problem on one of my
    >>list boxes. When I open the form it is on, the listbox
    >>populates correctly based on the query source. One of
    the
    >>parameters in the query is a combo box on the same form
    >>which is used as a filter by means of the after update
    >>event and list box's requery method.
    >>
    >>Although it is correct when the form first opens, each
    >>subsequent requery only populates the listbox until the
    >>bottom of the listbox is reached then stops. ie -
    where
    >>it should keep populating (thus requiring a scrollbar),
    it
    >>doesn't.
    >>
    >>Any ideas?
    >>
    >>Thanks,
    >>Ryan
    >
    >.
    >
    Ryan Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139