Command Button vs Form Button

B

Bri

Hi

I'm uncertain as to when I should be using CmdButtons from the Control
Toolbox vs when I should be using Buttons from the Forms Toolbar. It seems
I can assign code that works fine to either one. I know this is a genereal
question, but are there clear guidelines as to which button is best for what
sort of task? Are there times when one type of button should be avoided?

Thanks
Bri
 
G

Guest

I almost exclusively use cmdButtons from the control toolbox. They are easier
to deal with since they can be easily referenced in code. They have more
properties and methods to play with. The only reason I would ever use the
buttons from the forms toolbar is if I needed the code, that the button is
attached too, to not land in the sheet. This happens if you want to copy the
sheet to another book or such.
 
H

Harald Staff

Adding to Jim:
Controls from the Toolbox will only work properly in Window 1. So if there's
a chance of multiple windows use of a sheet, avoid controls on it and use
the Forms items.

HTH. Best wishes Harald
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top