Results 1 to 5 of 5
  1. #1
    Jo22 is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2012
    Location
    Alberta, Canada
    Posts
    21

    Problem with Cascading Combo Boxes in a Subform

    Hi! I am new to this forum and to MS Access. I am hoping someone can help me with this problem I have been struggling with all day.

    I have a main form [Quote Details] with a subform [Quote Query].
    The subform has the following cascading combo boxes which are bound to controls on the subform:
    [cmbSupplier], [cmbProduct], and [cmbPattern]

    [SupplierID] Rowsource = SELECT [Suppliers Query].ID, [Suppliers Query].Company FROM [Suppliers Query] ORDER BY [Suppliers Query].Company;

    [ProductID] Rowsource = SELECT [Products Query].ID, [Products Query].[Product Name], [Products Query].[Supplier ID] FROM [Products Query] WHERE ((([Products Query].[ID])=[Forms]![Quote Details]![Quote Query]![cmbSupplier]));

    PROBLEM: When I open the main form [Quote Details], it opens just fine with all the subform fields blank. I go to the subform, click on the [cmbSupplier] and select the supplier. When I press enter, a message box pops up Enter Parameter Value: Forms!Quote Details!Quote Query!cmbSupplier. If I enter the SupplierID in this box again, the cmbProduct populates correctly.



    My question is: How do I stop this popup? I do not understand why it asks me for the parameter value when I just entered it.

  2. #2
    cap.zadi is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Hey,

    Go through from article and it will help you to understand the relationship of Main form to sub-form.

    http://social.msdn.microsoft.com/For...7-1a9d045b3400

    If still did not solved so please post the project here and will do for you.

    regards

    zee

  3. #3
    cap.zadi is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    I am sorry.

    Joe you are welcome to this forum. i am sure will have good experience.

    best regards

    zee

  4. #4
    Jo22 is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2012
    Location
    Alberta, Canada
    Posts
    21

    Thumbs up Problem Solved

    Thanks a whole bunch Cap.Zadi! The link you suggested was perfect. I changed the name of my subform Control to Quote Query, the same as my subform name, and it worked like magic.

    Oh, by the way, that is Jo (female) not Joe (male)

  5. #5
    cap.zadi is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Your are welcome. oh i apologize for that error.

    If your problem is solved so please mark the thread as solved.

    have good time.

    zee

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

Similar Threads

  1. Cascading Combo boxes Problem
    By aamer in forum Access
    Replies: 12
    Last Post: 04-03-2011, 07:11 AM
  2. cascading combo boxes in continuous subform
    By ayamali in forum Programming
    Replies: 1
    Last Post: 03-29-2011, 06:33 PM
  3. Cascading Combo Boxes
    By desireemm1 in forum Programming
    Replies: 1
    Last Post: 10-05-2009, 06:00 AM
  4. Cascading Combo Boxes
    By gjw1012 in forum Access
    Replies: 1
    Last Post: 07-25-2009, 04:59 PM
  5. Problem with Cascading Combo Boxes
    By CushingMT in forum Forms
    Replies: 0
    Last Post: 11-13-2008, 09:44 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