Results 1 to 3 of 3
  1. #1
    swalsh84 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    36

    Highlighting Items in List Box from Table Data

    Apologies if this already was posted. I have a form that inputs data about a project. There are a total of 3 list boxes that are on this form. When you press the save project button, a go-between table saves a record of the projectID and the dependencyID. These are multiselect boxes so it is possible to have multiple dependencies on the same project



    Code:
     
    project1, dependency1
    project1, dependency2
    What I would like to do is on form load the list box is highlighted with this information. I have about 50 some odd projects and everytime the form loads the data is cleared. I have already created a way to delete all records if the information changes, but I would like to be able to see what I have already done. I just need to get the listbox.itemsselected to talk to the data in the table.

    Does this make sense? Any thoughts?

    Thanks in advance!

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Checkout "conditional formatting." Individual rows in a listbox cannot be highlighted, only selected or not selected.

    Use VBA code to determine which rows are selected and then code their related table.

  3. #3
    swalsh84 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    36
    That's exactly what I want to do. Show which items are selected and not selected. The trouble I am having is that I cannot get the table to talk to the list box. I know which items I want to see selected, I just cannot figure out the syntax for the list box to reflect that.

    Thanks for the starting point!

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

Similar Threads

  1. list box items
    By thewabit in forum Forms
    Replies: 12
    Last Post: 01-01-2010, 08:59 PM
  2. Invisible LookUp Data List
    By aaghd in forum Access
    Replies: 3
    Last Post: 07-28-2009, 02:35 PM
  3. Highlighting Report Data Based on a Condition
    By KramerJ in forum Reports
    Replies: 1
    Last Post: 05-29-2009, 10:27 AM
  4. Generate a List of Items from "Many" Relationship
    By Hammer Mark in forum Reports
    Replies: 0
    Last Post: 04-20-2009, 07:30 AM
  5. Replies: 1
    Last Post: 11-11-2006, 08:23 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