Re: Shortcut menu action syntax



Build a public function in the "main" (parent) form.


Public Function ShowAvailability

me.orderDetails.Form.ShowAvailability()

end if

Now, in the on-action for your menu bar, go:

=ShowAvailability()


Don't include the forms qualifier for a menu, else it will run 3
times...(long time bug in access).

Remember, the form that has the focus is which form the public function will
run. So, to run code in sub-forms you best build a function in the parent
form that simple calls the sub-form code...


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@xxxxxxx


.



Relevant Pages

  • Re: Difference between :: and ->
    ... $this is returned from getInstance (google for the code, ... none-the-less...self and parent, though not accessible external to the ... public function pah(){return $this->bar;}} ... even so, Foo is always an instance...either self, parent, or $instance. ...
    (comp.lang.php)
  • Threading Issue
    ... calling thread by raising an event or using a delegate. ... So, basically, I want my parent to call my class ... I want to notify the parent and allow it to process the result in the parent ... Public Function BeginQuery(ByVal aCallBack As AsyncCallback, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Child construct parent
    ... public function __construct{ ... this is recreating the parent with every new child that come along. ... class LoginException extends Exception ...
    (comp.lang.php)
  • Re: [PHP] calling parent class method from the outside
    ... public function foo() {.. ... the parent methods/properties ... This will bring all methods/properties from class A into class B. ...
    (php.general)
  • Re: [PHP] Re: working with class inheritance
    ... public function GetType() ... class Child implements Parent ... public function gettype() { ...
    (php.general)