Results 1 to 3 of 3
  1. #1
    halnurse is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2016
    Posts
    22

    Cascading Combo Box in Subform, parameter error

    I have limited knowledge of access and I am self taught so be gentle. Anyway, here is my issue. I have a form (frmPS_Entry) that has a cascading combo box (one combo box filters one another). FrmPS_Entry works properly until I try to put it in frmReceiving as a sub form. When I try to use the sub form it gives me a "Enter Parameter Value" error. The first combo box selects the purchase order number and is sourced from a table called tblPS_Entry. The second is supposed to then only show material from that purchase order rather than all of the material ever entered. This combo box is sourced from a table called tblMaterial_Tracking. I did some research and currently this is how I have it set up: the PO_Number combo re-queries after update and then the Material combo box I went into the "Row Source" in properties and added a criteria [Forms]![frmPS_E]![PO_Number]. Let me know what other information you need. Please advise on how I could fix this issue or where I have gone wrong, thanks for your time.

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,840
    see this link about how to reference objects from different locations

    http://access.mvps.org/access/forms/frm0031.htm

    basically your subform is not 'visible' outside of the main form, so you need to refer to the main form, then the subform control then its' source object and finally the control name on that subform - so perhaps something like

    [Forms]![frmPS_Entry]!subformcontrolname!form![PO_Number]

    however there may be a shortcut if you look at the link

  3. #3
    halnurse is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2016
    Posts
    22
    Thank you for your fast reply. It seems that worked!!

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

Similar Threads

  1. Replies: 6
    Last Post: 11-21-2017, 03:10 PM
  2. Cascading Combo Box and Subform Issues
    By RossIV in forum Forms
    Replies: 13
    Last Post: 07-18-2013, 09:16 AM
  3. Cascading Combo in SubForm
    By ggs in forum Forms
    Replies: 1
    Last Post: 02-16-2012, 01:32 AM
  4. Replies: 4
    Last Post: 01-22-2012, 10:48 PM
  5. cascading combo boxes in continuous subform
    By ayamali in forum Programming
    Replies: 1
    Last Post: 03-29-2011, 06:33 PM

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