Forms let you browse, edit, and delete table or query records. In this video, learn how to open a form.
- [Presenter] When you develop an Access application…for your users, one common task you will have and perform…is opening forms, reports, and other objects.…In this movie I will show you how to assign a VBA macro…to a command button that opens a form.…I'm working in the course database,…and I've opened the open form form.…This is a relatively straightforward form.…I have a label for display products form,…and then a button with products on the label.…
As you suspect, I want to assign VBA code…that opens the products form to the products button.…So, I will switch over to design view,…I'll go to the home tab of the ribbon,…click the view button's down arrow…and click design view.…Then I will right click the products command button…and click build event.…Then in the choose builder dialog,…I'll click code builder and click OK.…In the visual basic editor I have a code module…that contains a new subroutine called Command21_Click.…
The command button I created…was assigned the internal numbering of 21…and this is the click event.…
- Working with macros
- Running a VBA procedure
- Debugging VBA code
- Defining variables, constants, and calculations
- Displaying a calculated result in a message box
- Repeating tasks with loops
- Manipulating database objects
- Adding, editing, and deleting records
- Looking up values in a table
- Automating processes with macros
Skill Level Advanced
What you should know1m 38s
1. Introduction to Visual Basic for Applications
2. Define Variables, Constants, and Calculations
3. Add Logic to Your VBA Code
4. Debug Your VBA Code
5. Manipulate Database Objects Using DoCmd
6. Read and Manipulate Table Data
7. Manipulate a Database Using the Application Object
8. Control Forms and Reports Using the Me Object
9. Automate Processes Using Macros
Next steps1m 7s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.