Solved

MS Access:  How to view details behind Form 'button'

Posted on 2016-08-17
4
42 Views
Last Modified: 2016-08-24
Hi,
A Form was created to import an external file.  I'm able to open the form in design view, how can I see what each 'button' on the form does?  Specifically, I'm trying to see what location the external file is picked up from and what table that file creates.
0
Comment
Question by:Wonderwall99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 250 total points
ID: 41759578
Click on the control.

Open the properties dialog (alt/enter or View from the menu).

Click on the event tab.

Look for the "OnClick" event.

It will either show a macro name, or "[Event Procedure]".   If the later, click the builder button (...) off to the right.  The VBA editor will open and display the associated code.

Jim.
0
 
LVL 58
ID: 41759585
You also might be interested in a series of articles by Techmommy.  This is the first:

https://www.experts-exchange.com/articles/9490/Introduction-to-VBA-Part-1.html

If you check her profile:

https://www.experts-exchange.com/members/TechMommy.html

She has a number of articles and videos on starting to work with VBA and Access in general.

Jim.
1
 
LVL 38

Assisted Solution

by:PatHartman
PatHartman earned 125 total points
ID: 41759713
Sometimes a picture is worth a thousand words so here is a picture.Click Event
0
 
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 125 total points
ID: 41760245
There may also be interaction with other "Code", on the form  (not just button code), ...that might be worth knowing about.
(For example, ...your button might "Call" a function)

You can certainly print out/view all the code while the VBA window is open (see Pat's post above)

You can also use the "Database "Documenter" to view, print, or save all the code on a form:

Database Tools-->Analyze-->Database Documenter
Select your form
Click the "Options" button
Under "Include for form", select : "Code"
Under "Include for Sections and Controls", select: "Nothing"

JeffCoachman
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

632 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