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

    COUNT Inquiry

    anyone knows what should i do or codes should i put? my problem is that, there are 3 drop down button that should filter category of items in a database:

    Category 1
    Category 2
    Category 3

    whatever users choose in category 1, it will filter the items in Category 2. whatever users choose in category 2, it will filter the items in category 3. users can choose 1 to 2 categories or sometimes the 3 categories. the items will show in a subform. the subform are getting the items from a query. the dropdown button gets its value from a Table.
    my challenge is that, i want to get the number of items in Category 1 once users chose it. if they choose something in Category 2 the number of items will change also. there will be 3 textbox for Category 1 COUNT, Category 2 COUNT, and Category 3 COUNT.



    as of now, what im getting is only the filtering of Category 1 and Category 1 COUNT.

  2. #2
    essaytee's Avatar
    essaytee is offline Been around a while
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2008
    Location
    Melbourne, Australia
    Posts
    27
    You need to place code in the AfterUpdate event of your combo boxes. The code placed there requeries the other combo boxes ( eg. combo1.requery).

    Steve.

  3. #3
    gatsby is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    114
    yup ive tried that one. all of the combo boxes have Requeries. but only the first combo box is working.

  4. #4
    essaytee's Avatar
    essaytee is offline Been around a while
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2008
    Location
    Melbourne, Australia
    Posts
    27
    Quote Originally Posted by gatsby View Post
    yup ive tried that one. all of the combo boxes have Requeries. but only the first combo box is working.
    Seems as though the queries in your second and third combo boxes are not configured correctly. The second combo box query (SQL) should have a field name equal to the first combo box control, if it hasn't then it will never work. Likewise, the third combo box query should have a field name equal to the second combo box control.

    Steve.

  5. #5
    gatsby is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    114
    Quote Originally Posted by essaytee View Post
    Seems as though the queries in your second and third combo boxes are not configured correctly. The second combo box query (SQL) should have a field name equal to the first combo box control, if it hasn't then it will never work. Likewise, the third combo box query should have a field name equal to the second combo box control.

    Steve.

    i tried it also in my testing but its not working also. attached us the original database
    Attached Files Attached Files

  6. #6
    OTOTO is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2014
    Location
    Massachusetts
    Posts
    37
    I unzipped the file and its telling me that it's an Unrecognized database format. Not sure why...

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

Similar Threads

  1. Double inquiry
    By detaylor1242 in forum Macros
    Replies: 3
    Last Post: 05-24-2014, 07:04 PM
  2. recordsource - inquiry
    By myboii1984 in forum Forms
    Replies: 4
    Last Post: 04-02-2012, 08:11 AM
  3. Layout Inquiry
    By allstar45 in forum Reports
    Replies: 2
    Last Post: 03-15-2012, 11:44 AM
  4. Inquiry form updates the current record
    By mazzanrol in forum Forms
    Replies: 4
    Last Post: 04-08-2011, 08:35 AM
  5. Query Optimization Inquiry
    By Nobody in forum Queries
    Replies: 1
    Last Post: 07-29-2010, 08:53 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