From the course: Access: VBA
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Allow or disallow additions, deletions, and edits
From the course: Access: VBA
Allow or disallow additions, deletions, and edits
- [Instructor] When you create VBA code for a form or report, you can use the me object as a shortcut to refer to that object. If you're working with a form, for example, you can use the me keyword properties to allow or prohibit additions, edits, and deletions using that form. I'll demonstrate how to define those properties in this movie. I have opened up the course database and in the forms collection, I have opened the categories form in design view. You might see different forms based on what you've done already in the course. I want to crate an event handler for when the form is opened. So I will right-click a blank spot in the detail section and then click build event. In the choose builder dialog box, I'll click code builder, and click okay. And I get an event handler for the detail click event. That's actually not what I want. So I'll go up to the object control, click it's down arrow, and click form. Now I get a new event handler for when the form loads. On the title bar of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Allow or disallow additions, deletions, and edits3m 39s
-
(Locked)
Manipulate form filters3m 19s
-
(Locked)
Set the caption and background picture4m 38s
-
(Locked)
Requery and repaint forms4m 1s
-
(Locked)
Discover a record source2m 26s
-
(Locked)
Render a form or report visible or invisible2m 30s
-
(Locked)
-
-