replicate buttons

jmlight

Registered User.
Local time
Yesterday, 22:33
Joined
Feb 6, 2009
Messages
54
All of my forms have a set of buttons (add record, save, next, last, etc...)

Is there a way to for me to make some kind of a macro that I can add to a form so I don't have to re-create these buttons every time I make a new form?

BTW - I'm pretty new here, so I haven't done much coding - i pretty much use the wizards.....
 
Why not just copy them from an existing form using the Clipboard?
 
DIdn't know I could do that? THought that would be TOO SIMPLE!! ha ha!
 
Copying the buttons will not copy the code behind them, you'll have to do that also!

What I do for this kind of thing is to have a template form, with these kind of controls already in place, that I keep in a development database. When I start a new project I import it into the new database. I then make any formatting modifications that I want common to all forms in that particular database, such as the colors of various things, then use this as the basis for all forms for that particular project, copying it and using it to start.
 
That's a great idea! So rather than design a form and add the buttons...have a from with the buttons and then design the form above the buttons!
 
Another approach is to put them on a subform and embed that subform in all your forms. You then may have to have the code behind the buttons user Me.Parent to do things to the main form, but that's pretty easy (it can be used in place of Me in the original code when the buttons were on the main form).
 

Users who are viewing this thread

Back
Top Bottom