Results 1 to 4 of 4
  1. #1
    Bkper087 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    May 2014
    Posts
    81

    Dependent list creates Parameter Value Error with Navigation Form

    I am attempting to create a customized task manager. I have created a form that has a combo box that list a series of categories. This list is pulled from a query. I also have a sub-category list that is pulled from a separate query.



    The relevant section of the subcategory query looks like this:

    CategoriesID / subCateogiesID
    1 / 1
    1 / 2
    1 / 3
    2 / 4
    2 / 5
    2 / 6
    3 / 7

    The query has a criteria that sources the combo box on the task creator form. This filters out all other primary categories. I have a macro that auto refreshes the page after the primary category combo box is updated. The sub category combo box then displays the related sub categories.

    This works great as a stand alone form. However, when I attempt to use a navigation form or use the tab navigation window I get the error message "Enter Parameter Value." I know am getting this message, because the related categories query is looking for a category in the combo box on the form, which at this point in the process is missing. It also does not update once it is moved to a navigation form or tabbed window.

    Am I going about this the wrong way or is there a relatively simple solution?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Don't like and don't use navigation form.

    Post the RowSource SQL statement from the dependent subCategories combobox. Both comboboxes are on the same form?
    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
    Bkper087 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    May 2014
    Posts
    81
    Below is the SQL from the Query that serves as the source of the sucCategories combo box data:

    SELECT CategoryT.ID, CategoryT.Categoryfk, CategoryT.SubCategory, CategoryT.BudgetNumber
    FROM CategoryT
    WHERE (((CategoryT.Categoryfk)=[Forms]![TaskCreatorF]![cboCategory]))
    ORDER BY CategoryT.Categoryfk, CategoryT.SubCategory;

    And yes, both combo boxes are on the same form. Instead of using a Macro I, changed it to the code: Me.cboSubCategories.Requery

    Again, it works fine as a stand alone form, but not as a subform.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Try this SQL statement directly in the combobox RowSource property:

    SELECT ID, Categoryfk, SubCategory, BudgetNumber FROM CategoryT WHERE Categoryfk=[cboCategory] ORDER BY Categoryfk, SubCategory;
    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: 12
    Last Post: 12-07-2015, 07:10 PM
  2. Bool missing creates error
    By Ruegen in forum Programming
    Replies: 3
    Last Post: 04-16-2015, 05:52 AM
  3. First Drop-down list creates different selections
    By andreaunderwood in forum Database Design
    Replies: 1
    Last Post: 04-16-2013, 06:34 PM
  4. Replies: 2
    Last Post: 08-08-2012, 10:07 PM
  5. Dependent List Boxes do not refresh using ReQuery
    By weeblesue in forum Programming
    Replies: 2
    Last Post: 03-28-2011, 08:47 AM

Tags for this Thread

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