William Benson
vbacreations at gmail.com
Mon Aug 15 18:13:20 CDT 2011
I use that sometimes but I like assigning an element of the forms collection to a variable and testing if it is nothing. If so it ain't loaded. On Aug 15, 2011 5:56 PM, "Stuart McLachlan" <stuart at lexacorp.com.pg> wrote: > I just did a test using the same control and form names. That call worked fine from both a > button on another form and from the Immediate window (as long as the form is open of > course). > > I think you need to look somewhere else for the problem > > -- > Stuart > > On 15 Aug 2011 at 14:19, Rocky Smolin wrote: > >> Yeah, doesn't help, though, I think the error's being generated by the >> syntax of the calling statement - I think it never gets so far as to >> look for the sub. >> >> R >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan Sent: August 15, 2011 2:17 PM To: Access Developers >> discussion and problem solving Subject: Re: [AccessD] Call an event in >> another form >> >> Have you declared lblTime0_CLick as Public in the form module? >> >> -- >> Stuart >> >> On 15 Aug 2011 at 14:07, Rocky Smolin wrote: >> >> > Dear List: >> > >> > I am trying to call the sub lblTime0_Click() which is in the CBF >> > frmMatterButtonsHorizontal. >> > >> > Using: >> > >> > Call Forms("frmMatterButtonsHorizontal").lblTime0_Click >> > >> > gives me an application-defined or object-defined error. >> > >> > What is the correct syntax? >> > >> > MTIA >> > >> > Rocky Smolin >> > Beach Access Software >> > 858-259-4334 >> > www.bchacc.com <http://www.bchacc.com/> www.e-z-mrp.com >> > <http://www.e-z-mrp.com/> >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com