Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jul 2008
    Location
    Suffolk, United Kingdom
    Posts
    308
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Display data in list box based on form (2003)

    Hi,

    I would like to know how to use a list box (which is using 3 coloums from a query) to display only the records that match criteria on the form it is on.

    The field on the form is called RefID and on the list box its coloum 3 called Reference

    Many thanks
    Regards
    Gerbil (AKA Kevin)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Display data in list box based on form (2003)

    Set the Row Source of the list box to

    SELECT ... FROM ... WHERE Reference = [Forms]![...]![RefID]

    Substitute the appropriate names for ...

    Requery the list box when needed.

    BTW, were the replies to <post:=728,120>post 728,120</post:>, <post:=728,201>post 728,201</post:> and <post:=728,287>post 728,287</post:> helpful?

  3. #3
    3 Star Lounger
    Join Date
    Jul 2008
    Location
    Suffolk, United Kingdom
    Posts
    308
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Display data in list box based on form (2003)

    Thank you Hans,

    And yes they were usful, however I have only just read them. For some reason I can not see there was an update untill I opened the thread.

    Thanks to all. I will reply to the other threads with thanks later. I'm learning a lot here thanks so much..
    Regards
    Gerbil (AKA Kevin)

Posting Permissions

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