Solved

I would like to be able to handle Buttons on an Access2013 Forms with a few lines of VBA code. Can anyone there show me how?A

Posted on 2014-10-22
3
157 Views
Last Modified: 2014-10-30
I saw Briefly, someone Write  VBA code that completely handled the Buttons that opened up new forms, instead of by Wizard. It was far easier to maintain.
0
Comment
Question by:Frank Vertin
3 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 40397827
place this code in the click event of the button

docmd.openform "nameofForm"
0
 
LVL 35

Accepted Solution

by:
PatHartman earned 500 total points
ID: 40397848
Here's a simplified switchboard with code that you can maintain.  It is based on the original Access Switchboard but has some modifications.  I have other, more extensive versions that use the additional columns in the Switchboard Items table and come with a Switchboard Items table maintenance form but this is a start.

Unlike the original Switchboard, it is not limited to 8 items per page.

It uses themes so if you change the theme of your app, the Switchboard form should adapt or you can colorize it yourself or add a background image.
Switchboard-Simple141022.zip
0
 

Author Closing Comment

by:Frank Vertin
ID: 40414894
This is the solution that is closest to what I wanted. I may have more questions on this, later
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question