Access Users Group – ET Using Shortcut Menus in your Access Applications 15 Feb, 2019.

Slides:



Advertisements
Similar presentations
The Ribbon Standard to all Office 2007 applications Organized by feature and functionality Navigation Pane Access to all objects in the current database.
Advertisements

Using Macros and Visual Basic for Applications (VBA) with Excel
© 2002 ComputerPREP, Inc. All rights reserved. Excel 2000: Customizing Excel and Using Macros.
Microsoft Office Excel 2013 Core Microsoft Office Excel 2013 Core Courseware # 3253 Lesson 8: Macros, Importing and Exporting Data.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Copyright 2003 Peter McDevitt 1 Microsoft Excel 2002 Lecture 3 – A Professional Looking Worksheet.
Microsoft Word Objectives: Word processing using Microsoft Word
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 3 1 Microsoft Office Excel 2003 Tutorial 3 – Developing a Professional- Looking.
Excel Lesson 3 Organizing the Worksheet
CVEV 118/698 Visual Basic Lecture 3 Prof. Mounir Mabsout Elsa Sulukdjian Walid El Asmar.
Customizing Menus and Toolbars. Manipulating Command Bars Customize: –Right-click any place on a command bar and cick Customize … Customize window: –Toolbars,
Access Tutorial 3 Maintaining and Querying a Database
Keyboard shortcuts in the 2007 Office system Introducing the Ribbon Based on extensive research into how people use Microsoft Office and how they wish.
ADVANCED MICROSOFT POWERPOINT Lesson 6 – Creating Tables and Charts
1 Excel Lesson 3 Organizing the Worksheet Microsoft Office 2010 Introductory Pasewark & Pasewark.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Ten String Manipulation and Menus.
Chapter 8: String Manipulation
Programming with Microsoft Visual Basic th Edition
Lesson 1 – Microsoft Excel The goal of this lesson is for students to successfully explore and describe the Excel window and to create a new worksheet.
Tutorial 6 Using Form Tools and Creating Custom Forms
Unit J: Creating a Database Microsoft Office Illustrated Fundamentals.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Advanced Excel for Finance Professionals A self study material from South Asian Management Technologies Foundation.
Using Form Tools and Creating Custom Forms Microsoft Access 2010.
Microsoft Office Excel 2003 Tutorial 3 – Developing a Professional-Looking Worksheet.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Productivity Programs Common Features and Commands.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Key Applications Module Lesson 21 — Access Essentials
VOCAB REVIEW. process of copying an item from the Clipboard into the document at the location of the insertion point Pasting Click for the answer Next.
Chapter 8: Manipulating Strings
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
Copyright 2007 Paradigm Publishing Inc. EXCEL 2007 Chapter 7 BACKNEXTEND 7-1 LINKS TO OBJECTIVES Create a Chart with Data in a Worksheet Create a Chart.
Engineering\CADD Systems Office CADD Manager's Series Customizing the Interface.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Eight String Manipulation.
Slide 1 Using Menu Bar & Common Dialog Boxes. Slide 2 Setting Up the Main Items v First open the form on which you want the menu located v Then start.
Securing and Sharing Workbooks Lesson 11. The Review Tab Microsoft Excel provides several layers of security and protection that enable you to control.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Eight String Manipulation.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide The New VDF12.1 Codejock.
Office 12: Developing With The Programmable Customization Model For The Office 12 User Experience (Part 2) also known as… Savraj Dhanjal OFF302 Program.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
Chapter 7 Multiple Forms, Modules, and Menus. Section 7.2 MODULES A module contains code—declarations and procedures—that are used by other files in a.
Microsoft Excel 2007 Noris Bt. Ismail Faculty of Information and Communication Technology Tel : (Ext 8408) BCOMP0101.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 11 Creating Web Applications and Writing Data to a Database.
Dive Into® Visual Basic 2010 Express
Microsoft Word Objectives: Word processing using Microsoft Word
Using Macros, Switchboards, PivotTables, and PivotCharts
VBA - Excel VBA is Visual Basic for Applications
VBA - Excel VBA is Visual Basic for Applications
Working in the Forms Developer Environment
Customizing the Quick Access Toolbar in Microsoft Office
Introduction to the Visual C# 2005 Express Edition IDE
Microsoft Office 2013 Coming to a PC near you!.
DB Implementation: MS Access Forms
VISUAL BASIC.
Basic editing Word 2013.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Word 2010 : Tables
DB Implementation: MS Access Forms
Microsoft Word 2010 : Tables
HIBBs is a program of the Global Health Informatics Partnership Learning the Basics of Microsoft Word 2019 and Microsoft office support TFN
Access Users Group – ET Using Shortcut Menus in your Access Applications 15 Feb, 2019.
Unit J: Creating a Database
Microsoft Word 2010 : Tables
Chapter 4 Enhancing the Graphical User Interface
Microsoft Excel 2007 – Level 2
Presentation transcript:

Access Users Group – ET Using Shortcut Menus in your Access Applications 15 Feb, 2019

Presenter: Dale Fye Owner: Dev-Soln, LLC (Developing Solutions) Microsoft Access MVP (2013-2016) www.dev-soln.com

History Integral part of Windows applications. Each windows application has its own set of shortcut menus, Access has roughly 200. Prior to A2007, Access had a feature which allowed you to customize menus, no more. Although menus have been removed, replaced by the ribbon, shortcut menus remain.

Access Commandbars How many are there? What are they? ?application.commandbars.count What are they? For each cbr in application.commandbars debug.print cbr.name Next What controls do they contain? With commandbars("Form Datasheet Column") for intloop = 1 to .Controls.Count debug.Print .Controls(intLoop).Caption, .Controls(intLoop).ID next End with

Displaying elements of a Commandbar Commandbars("Form Datasheet Column").ShowPopup Actual list of all controls in the commandbar. Note: Shortcut menus are context sensitive. Some controls will be hidden others will be enabled/disabled depending on the context the menu is used in.

Creating your own Shortcut Menu Early Binding: Microsoft Office XX.0 Object Library Declare variables Dim cbr as CommandBar , ctrl as CommandBarControl Dim cbrButton As CommandBarButton Dim cbrcombo As CommandBarComboBox Dim cbrEdit As CommandBarControl Define commandbar set cbr = CommandBars.Add(Name, [Position], [Menubar], [Temporary]) Name := name used to refer to the commandbar Position := Must be 5 for shortcut menus Menubar := [True/False] Replace the active menu bar – default is False Temporary := False if you want the cbar to remain in the application between sessions

Adding controls Defining Controls: Set ctrl = cbr.Controls.Add([Type], [ID], [Parameter], [Before], [Temp]) Type := msoConrolButton, msoControlEdit, msoControlDropdown, msoControlPopup ID := value of the ID from any of the built-in controls Parameter := any value you want to pass to the procedure which will be executed when the option is selected Before := where you want the control in the commandbar. If greater than the number of controls in the commandbar, it will raise an error Temp := False if you want the control to remain between sessions Set ctrl0 = .Add(Type:=1, Temporary:= -1) With ctrl0 .Caption = "&Print“ .OnAction = "=fnReportPrint()“ .FaceID = 4 .Visible = -1 .Enabled = -1 .BeginGroup = 0 .ToolTipText = "&Print“ .Width = 177 End With

Control Properties .Caption := same as form caption .OnAction := "=fnReportPrint()“ - this refers to the procedure which will run when the option is selected .FaceID := if using one of images associated with built-in options .Visible := self explanatory .Enabled := self explanatory .BeginGroup := insert a line separator between items .ToolTipText := self explanatory .State := Checked or unchecked

Using Built-in Commandbars I frequently disable the built-in commandbars on forms and reports. Built-in commandbars are disabled in runtime applications Sometimes it is difficult to determine what commandbar you are seeing, especially with datasheets (21 separate cbars) Form Datasheet Form Datasheet Column Form Datasheet Row Form Datasheet Cell Form Datasheet Subcolumn You can manipulate built-in commandbars in your applications Be really careful when doing this. Recommend making these temporary

Runtime Shortcut Menus Built-in menus are disabled You can copy and use the built-in menus but takes a bit more work.

Access Shortcut Tool

Articles and Other Resources Understanding and using CommandBars Part 1 Understanding and using CommandBars Part 2 Using built-in Shortcut Menus Using Shortcut menus in Access run-time Access Shortcut Tool