Results 1 to 2 of 2
  1. #1
    gatsby is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    114

    Combo Boxes Filtering

    Hello All,

    What I am doing now is how to filter my drop down button or combo boxes. first drop down works perfectly fine, but the second and third is not working. i know theres something wrong but i just couldnt fix it. i know theres cascading combo boxes and the Tables should be organize in creating cascading comboboxes but my data are just imported coming from an Excel. its a weekly report that is live meaning changeable every week. but number of columns are fixed as well as the name per columns. is there any code that i should place in every combo boxes? or aything i should know and should do?

    any help is highly appreciated.

    attached is my database....
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Review http://www.datapigtechnologies.com/f...combobox2.html

    Dependent combobox needs a parameterized query as RowSource.

    I don't understand why you would requery lkpModule after selecting item in lkpHStatus. Which combobox should be dependent on which other combobox?

    Discipline and Module tables have no relationship. If you want Module combobox to be dependent on Discipline, have to use tblHRMS as the source of items for the Module combobox.

    SELECT DISTINCT Module FROM tblHRMS WHERE Discipline = lkpAssembly;

    As I noted in your other thread, no need to complicate this with a subform. Set the RecordSource for HRMS form and put the bound textboxes directly on it. Move the listbox into form header.

    You have ModID autonumber field set as the primary key but you are saving the text from Module field into tblHRMS. Since ModID is not used it is not needed, Module should be designated the primary key field. Discipline table doesn't even have a primary key designated. Nothing prevents duplicates. In fact, the DiscID field is set as Index Yes (Duplicates OK). Why would there be duplicates allowed?
    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. Replies: 9
    Last Post: 07-03-2014, 12:00 PM
  2. Replies: 5
    Last Post: 07-26-2012, 02:30 PM
  3. Replies: 4
    Last Post: 06-12-2012, 11:49 AM
  4. Error with filtering subform using 2 combo boxes
    By dharmacloud in forum Forms
    Replies: 4
    Last Post: 08-22-2011, 10:46 AM
  5. Filtering options using Cascading Combo boxes
    By Lincoln in forum Database Design
    Replies: 3
    Last Post: 07-15-2011, 08:25 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