[AccessD] Create and place buttons with code

John Colby jwcolby at gmail.com
Tue May 14 18:49:09 CDT 2019


Create a form. Place a button. Save the form. Export as text. The resulting
code will be how to create the form programmatically.

On Tue, May 14, 2019, 3:17 PM Arthur Fuller <fuller.artful at gmail.com> wrote:

> Thanks, Jim. I shall try that approach instead. But your suggestion does
> not help me place the buttons. I shall work on that as a sub-project.
>
> On Tue, May 14, 2019 at 1:49 PM Daniel Waters <df.waters at outlook.com>
> wrote:
>
> > If anyone does hit that limit - the Access DeCorrupter will fix that for
> > you.
> >
> > Let me know if you want a copy.
> >
> > Dan
> >
> > -----Original Message-----
> > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of
> > Jim Dettman via AccessD
> > Sent: May 14, 2019 12:43
> > To: 'Access Developers discussion and problem solving'
> > Cc: Jim Dettman
> > Subject: Re: [AccessD] Create and place buttons with code
> >
> > Arthur,
> >
> >  Not a great idea.  Two reasons:
> >
> > 1. The lifetime limit for adding controls to a form (once you hit it, you
> > can't add anymore).
> > 2. Adding code will leave the app un-compiled.
> >
> >  Better to place all the buttons you need and then hide/un-hide as
> needed.
> >
> > Jim.
> >
> > -----Original Message-----
> > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of
> > Arthur Fuller
> > Sent: Tuesday, May 14, 2019 10:58 AM
> > To: Access Developers discussion and problem solving
> > Subject: [AccessD] Create and place buttons with code
> >
> > Preamble: I'm trying to write a replacement for MsgBox, which basically
> > does everything MsgBox does, and then some.
> >
> > --
> > Arthur
> > --
> > 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
> >
>
>
> --
> Arthur
> --
> 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