On Form Opening

johnbird1988

Board Regular
Joined
Oct 6, 2009
Messages
199
Hello
I have created a switchboard and on the switchboard there are various buttons that opens form once clicked. One of the buttons just opens a form normally and I would like another button once clicked to open the same form but change the form properties so that “Data Entry = Yes” and “Navigation Buttons = No”.
I need this change to only apply when this button is clicked and act normal when others activated.
Thank you for your help
John
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
You will want to trigger some VBA code when doing this. In the On Click (not 100% sure if this is the right Event as I rarely use a switchboard) create an Event Procedure and the following code will go there:
Code:
DoCmd.OpenForm "YourFormName"
Forms("YourFormName").NavigationButtons = False
Forms("YourFormName").AllowAdditions = False

Of course you can switch False to True for the other button.

This is the general idea and you will have to play around with it a bit becuase I am not sure how the switchboard triggers events, whether it is a Macro or VBA (probably a Macro, but if all it is doing is opening a form, this would replace the Macro). As always, make a copy of the switchboard in case these changes mess stuff up.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,833
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top