[AccessD] Sample vba to get code (event procedure code) behind form/controls

Stuart McLachlan stuart at lexacorp.com.pg
Tue Mar 24 20:04:13 CDT 2015


Application.SaveAsText acForm, "frmDemo","C:\Demoform.

will create a text file containing the form and it's associated VBA.

LoadFromText will let you import the file  back the application.

-- 
Stuart

On 24 Mar 2015 at 20:30, jack drawbridge wrote:

> Does anyone have some sample code showing how, using vba, to get the
> code behind a form and its controls? I have code to get standard
> module/procedure lines, but have been unable to find any code (or any
> real info really) on how to get that code.
> 
> Any advice and guidance  most appreciated.
> 
> Thanks in advance,
> jack
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
> 




More information about the AccessD mailing list