jwcolby
jwcolby at colbyconsulting.com
Mon Jul 23 14:23:18 CDT 2007
Glad I could help. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Jeris Sent: Monday, July 23, 2007 2:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Can't call methods I've added to a form? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 jwcolby wrote: > You don't say how you are calling the form's method. You have to > specify the form object, then the method so... > > Forms("MyForm").InitializeFromBuffer SomeParam > > Alternatively: > > Dim frm as form > set frm=forms("MyForm") > frm.InitializeFromBuffer SomeParam > > Remember that a form's code is a class and you have to get a pointer > to that class in order to call a method of the class. I constructed a toy example based on your suggestion, and it seems like the actual problem was related to what you're describing: some things were declared Friend that should have been Public. Thanks for your input! peace, Chris Jeris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGpPXX5ICCNV0oGWARAoEpAJwOlQk6et82vflCKRlw4k/n1WxnjwCfZReN ixeEOhj3eGG7NxpHuqJqO8A= =poCW -----END PGP SIGNATURE----- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com