Generic Forms for Use in New Navigation Control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zmbd
    Recognized Expert Moderator Expert
    • Mar 2012
    • 5501

    Generic Forms for Use in New Navigation Control

    Question first: Is there the equivalent [ME]![SomeControlName] that can be used in the form control’s recordsource parameter such as in a combo-box?

    Ok, now for some context:
    I’m Playing with the new “Navigation Control” that MS has so happily supplied to replace the “outdated” switchboard and yet they have only provided the psionic version of the information as to how to exactly use this control… and a few short adhoc pieces (( Build navigation UI with Access 2010 )) that make it seem like a seamless drag and drop.

    I like the design, I don’t like some features, and transferring information from one form to the other sucks as the forms are closed and reopened (sort-of late opening forms in a tabbed parent to speed loading) so referring to the calling form’s controls is not possible; however, that’s another issue that might be solved.

    So……. I’ve run in to a bit of a nuisance (as alluded to in the question): in order to get the forms (or reports) into the new Navigation Control… it appears that you have to build the form (report) first then drag-n-drop onto the new control!

    Thus, I go thru all of the trouble to design a form that works nicely as a stand-alone implementation. In that form are several cascading combo-boxes. Nothing unusual about this, I’m sure many of us have done so… and I drag this form into the new “Navigation Form.” However, all of these little CBO have as a record source a query that has a parameter like this [forms]![frm_customeracc ounts]![zcbo_newcustome r] that goes in the WHERE clause so as to set-up the record source based on the prior CBO. and ofcourse, as with any sub, these now require that I go in and change them to something like this: [forms]![NavigationForm]![NavigationSubfo rm].[Form]![zcbo_newcustome r] once the form is dropped onto the “Navigation Control.”

    This gets even worse if there is a subform on the form that I just dropped onto the Navigation Form….

    Now the VBA in this form works just as I have programed… no issues. The reason the code works is that most of it either deals with the recordsets or has things like me.z_somecontro l.value = z_some_data_for _control so no problems with the VBA side of things… yet.

    In anycase we're back to the question: Is there the equivalent [ME]![SomeControlName] that can be used in the form control’s recordsource parameter such as in a combo-box?
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32662

    #2
    I tend to avoid that approach for that same reason (Lack of portability) Z. However, in your position I'd try referencing the control name directly and on its own. I don't have any 2010 exerience yet, nor 2007 (happily) so I'm unable to test it for you here.

    Comment

    • zmbd
      Recognized Expert Moderator Expert
      • Mar 2012
      • 5501

      #3
      That worked!
      Always the simple things I miss :(

      SO.. [forms]![NavigationForm]![NavigationSubfo rm].[Form]![zcbo_newcustome r] in the WHERE clause of the record source for the CBO became just: [zcbo_newcustome r]
      The form now works when opened directly and when opened from within the Navigation Control. Everything I had read about this new navigation control type had the entire parent/subformcontaine r/form/control reference in the examples and in the explanations!

      argh!

      Comment

      • TheSmileyCoder
        Recognized Expert Moderator Top Contributor
        • Dec 2009
        • 2322

        #4
        I love alot of the layout of Access 2010, and I often find myself thinking that the team whom developed access are pure genius. The amount of flexibility astounds me time and time again.

        That said however, it seems they they asked an untrained brain damaged chimp who couldn't find his glasses to write the new html style online help files. The context sensitive help in AC2003 was great and quite comprehensive with good examples. Most of the time I try context sensitive help in AC2007 or 2010 I simply get the frontpage of the help, and other times there is so little information its ridiculous. Thank god for online sites and communities.

        Comment

        • zmbd
          Recognized Expert Moderator Expert
          • Mar 2012
          • 5501

          #5
          TheSmileyCoder,

          Isn't that the truth!

          As for the help... I too often find myseld very disapointed and at that stupid frontpage. However, I've found that if I [F1] go to the search box at the top, enter my terms, use the dropdown list next to the magnifying glass and select one of the options under the "on this computer" I actually get some information! I don't understand why the default isn't to return information from both on and offline resources.

          Oh... I.... just... got... it...

          What would we be doing if the help file actually worked again? ;-)

          Comment

          • NeoPa
            Recognized Expert Moderator MVP
            • Oct 2006
            • 32662

            #6
            Originally posted by Zmbd
            Zmbd:
            What would we be doing if the help file actually worked again? ;-)
            Nah. There'd still be plenty of traffic here Z. Remember when it worked before, and we still had loads of questions that it already answered. No worries on that score I expect :-D

            Comment

            Working...