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
160 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 36

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

696 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