Access 2010 Web db: syntax for referring to forms/subforms

Posted on 2011-04-27
Last Modified: 2012-05-11
After mastering and using subform navigation for years in the Access client, along comes the web database and a similar, but not identical, way of referring to subforms.

I have a main form named "Navigation Form" with 4 tabs: MS Management, MS Management (Table View), Summary Management, and Search Form. The first three tabs each display an ordinary form. The Search Form on the fourth tab contains a Combo Box and a subform named Search Subform.

I am trying to figure out exactly how to refer to a control "ParentID" on the Search Subform in a macro that runs on the AfterUpdate of the Combo Box on Search Subform's parent, Search Form.  I have tried every permutation of forms I can think of, based on examples from all over the web, and they all return the error "..does not contain the Automation Object..." or "...must use a valid Path...".

I understand the meaning of these errors, but so far I have not stumbled onto the correct Path specification. Can anybody set me straight using the form names I included above?
Question by:dgmoore1

    Expert Comment

    have you tried...

    [Forms]![Navigation Form]![SearchForm]![Forms]![ParentID]

    Accepted Solution

    I found a simpler way - I was using the combo box to filter the records shown in the subform. I moved the combo box from the main form to the subform itself and it works correctly - doing it this way makes it unnecessary to specify Path to Subform Control.

    Author Closing Comment

    Found a better approach than I initially tried.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
    It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
    In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now