Results 1 to 4 of 4
  1. #1
    manic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    63

    Help with list box on form.

    Hello all,
    I need guidance with the following if possible:


    I have a form with multiple list boxes that contains three columns; column (0) contains a part number, column (1) the quantity and column (2) the product code. Each list box represents a location on a warehouse and on these locations only certain products can be stored, so for example, listbox 1 is only supposed to have products with code 1F and so on. My question is the following : how can I make the list box background change to red if on a listbox that only product “1F” is supposed to be there but it also contains product “B”, so in other words if it does not belong there can the list box via VBA code be changed to a different color based on that list box having different product codes when only one type is supposed to be there?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    You want the listbox to change color if an erroneous item is in the list? Maybe possible but doesn't sound easy. Preventing erroneous items from appearing in the list should be easy.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    manic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    63
    Quote Originally Posted by June7 View Post
    You want the listbox to change color if an erroneous item is in the list? Maybe possible but doesn't sound easy. Preventing erroneous items from appearing in the list should be easy.
    It could be easier but the problem is that i get the information from "Reflection for unix and Open VMS" server and I have no control of the data. If I was able to have a visual of which locations have items that are not supposed to be there I can make people move them to the correct location i a warehouse.

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Check out Stephen Lebans' site. He has an enhanced listbox control that *might* work.

    http://www.lebans.com/listboxenhanced.htm

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 04-05-2012, 08:39 PM
  2. Replies: 4
    Last Post: 06-16-2011, 09:30 PM
  3. Form/List Help
    By dhogan444 in forum Forms
    Replies: 1
    Last Post: 01-04-2011, 11:43 AM
  4. Form List Box
    By tpcervelo in forum Forms
    Replies: 1
    Last Post: 08-12-2010, 05:36 PM
  5. Replies: 3
    Last Post: 03-25-2010, 12:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums