Results 1 to 6 of 6
  1. #1
    cooper is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    24

    list form filtering from 1 combo box

    Hi guys,

    I have few tables:

    tblEmployees:
    titleID - primary key
    titleNme - (grouped into different categories like slotters, analysts, etc)

    tblType:
    TypeID - primary key
    TypeName - (types would like general information, Standard operating procedures etc)

    tblReports:

    ReportID - primary key
    titleID- foreign key to tblEmployees
    typeID - foreign key to tblType
    NmeReport
    Location (Hyperlink)


    What I want to do is let the user select their category (slotters, etc) from a combo box, and then this displays a list box where reports name, type and location is shown - Clicking the location should open the hyperlinked document.



    any ideas? thanks guys!!!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    What have you attempted and what is the issue?

    You want the listbox choices to be limited by the choice made in combobox? That is cascading or dependent combo/list boxes. Check this tutorial http://www.datapigtechnologies.com/f...combobox2.html

    Set the listbox as disabled or not visible then in the AfterUpdate event of combobox, make the listbox available and requery it.
    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
    cooper is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    24
    hey June7! thank your for your help again.

    the combo/list box is working perfectly now. One thing though:

    one of the fields in my list boxes is a hyperlink - How do I make it clickable?

    the hyperlink works fine in a table. I have made the data field for this column as "Hyperlink"

    thanks!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    Bind a textbox to hyperlink field or run the hyperlink in VBA code. Check these articles
    http://msdn.microsoft.com/en-us/libr...ffice.10).aspx
    http://allenbrowne.com/func-GoHyperlink.html
    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.

  5. #5
    cooper is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    24
    How do I call a function in a list box? I added the module on the database.

    Hyperlink field in my table is called Location - where different hyperlink is given. List box shows these different hyperlinks.. how do I connect all this now?

    thanks again!!!

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    A listbox RowSource can be an SQL query statement. Use the query builder (click the ellipses ...) to open the designer. Refer to a custom function just as you would any intrinsic function. The custom function must be behind the same form that has the listbox or else a Public function in a general code module.

    I could not get hyperlink to work from listbox.
    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.

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

Similar Threads

  1. Help with a form list combo
    By ggarcia in forum Forms
    Replies: 1
    Last Post: 05-23-2011, 06:00 PM
  2. Replies: 1
    Last Post: 01-28-2011, 07:59 PM
  3. Combo Box Filtering between Forms
    By andrew_ww in forum Access
    Replies: 3
    Last Post: 12-30-2009, 11:06 PM
  4. Replies: 0
    Last Post: 08-17-2008, 12:19 PM
  5. Problems with list or combo box on tabbed form
    By kydbmaster in forum Forms
    Replies: 0
    Last Post: 02-20-2008, 01:33 AM

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