Results 1 to 8 of 8
  1. #1
    Huddle is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    318

    Cascade Combos on a SubForm Tab - Parameter Value Error

    I found several post that address this common problem but I'm just not getting it. The cascade works when you're in the subform but not when you're in the main form (subform in on a tab control). It asks for a Parameter entry.

    Main Form: Fm_Inventory
    SubForm: SubForm_Countermeasures
    1st Combo Box: cmbsystem
    Next Combo Box that cascades from 1st Combo Box: cmbtype

    Here is one of the Row Sources for cmbtype I've tried. (under the System Where in the Q)



    [forms]![Fm_Inventory]![SubForm_Countermeasures].[cmbsystem]

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272

  3. #3
    Huddle is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    318
    Actually that confused me more.

  4. #4
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by Huddle View Post
    Actually that confused me more.
    Okay, let me try to explain.

    Your syntax is wrong.

    The link was showing you HOW you can get the right syntax by using the Expression Builder.

    Does that help push you in the right direction?

  5. #5
    Huddle is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    318
    So I think according to the tutorial, and other posts I read, that the correct syntax would be:
    [forms]![Fm_Inventory]![SubForm_Countermeasures].[Form]![CmbSystem]
    But that gives me this:
    Microsoft Access can't display the field for which you entered Where in the Total Row.

  6. #6
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by Huddle View Post
    So I think according to the tutorial, and other posts I read, that the correct syntax would be:
    [forms]![Fm_Inventory]![SubForm_Countermeasures].[Form]![CmbSystem]
    But that gives me this:
    Microsoft Access can't display the field for which you entered Where in the Total Row.
    If you used the method I showed, then you would likely have this as the end point:

    [SubForm_Countermeasures].[Form]![CmbSystem]

    without the first part.

    But the key is also that it would be referring to the subform CONTROL (control on the parent form which HOUSES the subform, but is not the name of the subform itself, unless the name of the subform and the name of the subform control are EXACTLY the same).

  7. #7
    Huddle is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    318
    Yes I did get that but I added the [forms]![Fm_Inventory]! according to some of the other postings I read.

    It does work now. Apparently the Control is the same name as the SubForm.

    Thank you for your help.

  8. #8
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by Huddle View Post
    Yes I did get that but I added the [forms]![Fm_Inventory]! according to some of the other postings I read.
    The full form reference is only required if you are referring to it from a form that is not the parent form (or another subform on the parent or the subform).

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

Similar Threads

  1. Combos
    By AdventureBob in forum Forms
    Replies: 1
    Last Post: 01-20-2012, 08:54 AM
  2. Replies: 3
    Last Post: 10-17-2011, 10:36 PM
  3. Form with parameter query subform
    By shiphtfour in forum Forms
    Replies: 11
    Last Post: 12-29-2010, 06:43 PM
  4. Replies: 0
    Last Post: 12-20-2010, 12:35 PM
  5. Using a subform Value as a parameter
    By AKQTS in forum Programming
    Replies: 1
    Last Post: 08-13-2010, 10:53 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