Solved

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

Posted on 2016-08-17
4
39 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 57

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 57
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 37

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

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.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 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