[AccessD] Forgotten syntax

jwcolby jwcolby at colbyconsulting.com
Wed Sep 9 10:51:21 CDT 2009


 > Because the code module of a form is a class ... snip

For all you guys that have no use for classes...

;)

John W. Colby
www.ColbyConsulting.com

> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert
> Sent: Wednesday, September 09, 2009 10:57 AM
> To: 'Access Developers discussion and problem solving'
> Subject: Re: [AccessD] Forgotten syntax
> 
> Because the code module of a form is a class module you need to make that procedure (which is really a class method) public with...
> 
> Public Sub GetResults_LC1_Check
> <code>
> End Sub
> 
> You will then be able to call the routine from anywhere with...
> 
> Forms!YourForm.GetResults_LC1_Check
> 
> And you *might* be able to call it with Parent.GetResults_LC1_Check from within the sub form.
> 
> HTH
> 
> Lambert




More information about the AccessD mailing list