Copying and using the same navigation (command) buttons!

atiq

Registered User.
Local time
Today, 23:26
Joined
Apr 11, 2007
Messages
23
I have got serveral forms where i want to use the same command buttons for each form to navigate through records. i was wondering if there is a way of achieving this without having to create all of the same command buttons again each time for a different form. i tried copy and paste which copied the command buttons but didn't function on the other form.

Any help would be appreciated. hope someone can help me with this issue.
 
Copy and paste the buttons and then go into the event procedures and copy and paste them for each form.
 
Thank you, Dustin! Sorry, Rainman89! As Rainman89 said, all comand buttons on forms have two components; the physical button itself and the code behind the button. After doing the things Rainman89 suggested, I think you'll find that you'll have to select the control (command button) then goto the Properties Box, click on the Events tab, then click on the OnClick event. This will take you, hopefully, to the Click event for the button! You just have to back out of the code window, clicking on the X button in the top right hand corner of the window, or clicking on the Access "key" in the top left hand corner of the window, and the button and its associated code will be joined.

Good luck!
 

Users who are viewing this thread

Back
Top Bottom