Results 1 to 3 of 3
  1. #1
    sunnyday is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    45

    Cascaded combo box asks for paramater query in main form although it works fine in sub form

    I have 2 cascaded boxes inside a subform:"Masterfrm". cmbOperator and cmb SiteName. Now cmbSiteName feeds on cmbOperator. When choosing an option from cmbOperator, the filtered list for cmbSiteName is available when working inside "Masterfrm". But when operating from the main form i.e. "Navigation Form", cmbSiteName asks for paramter query!. Below are the syntaxes..

    Private Sub cmbOperator_AfterUpdate()
    Me.cmbSiteName.Requery

    Since cmbOperator feeds from a query, the criteria query builder for it is
    [Forms]![Masterfrm]![cmbOperator]

    Name of navigation control for Masterfrm form in Navigation Form is also being renamed as Masterfrm.

    I am new to VBA please help.

    Regards,
    sunnyday

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,944
    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
    sunnyday is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    45
    Thanks!! Problem solved. The Syntax used is

    Like "*" &[Forms]![navigationForm]![SubForm]![ControlName] & "*"


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

Similar Threads

  1. Replies: 1
    Last Post: 11-14-2014, 05:12 PM
  2. Replies: 6
    Last Post: 08-20-2014, 06:43 PM
  3. Replies: 8
    Last Post: 05-16-2014, 01:21 PM
  4. Replies: 7
    Last Post: 06-10-2013, 12:40 PM
  5. Cascaded comboboxes in a form
    By luca in forum Forms
    Replies: 2
    Last Post: 11-22-2009, 05:36 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