[AccessD] Create and place buttons with code

Arthur Fuller fuller.artful at gmail.com
Wed May 15 02:56:25 CDT 2019


Rehi JWC,
I miss you and your always-insightful thoughts. Thanks for this tip. I
shall follow it up.

On Tue, May 14, 2019 at 7:49 PM John Colby <jwcolby at gmail.com> wrote:

> 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
> >
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>


-- 
Arthur


More information about the AccessD mailing list