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.
Display every row in a table (recordset)
- [Instructor] If you, or one of your users, wants to review the values in a table without using a form, you can do so by moving through each tabled row and displaying a couple of fields values in a message box. For example, you could display a category name and a category number to make sure you haven't missed anything in your records. I'll demonstrate how to do that in this movie. I'm using the Show Records form, which you can find in the Forms section of the course database. This form is very simple, it just has a single button on it for Show All Records. I would like to add a VBA code routine that will run when the button is clicked. To do that I need to be in Design View. So on the Home tab, I'll click the View button's down arrow. And click Design View. Then I'll right click the Show All Records button. And at the top of the shortcut menu, click Build Event. In the Choose Builder dialog box, I'll click Code Builder and click OK. This code module is for command button zero on…
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)
Display every row in a table (recordset)5m 20s
-
(Locked)
Add a new record to a table5m 54s
-
(Locked)
Edit values in an existing table row4m 21s
-
(Locked)
Preserve data integrity using transactions7m 37s
-
(Locked)
Display a table property using the TableDef object5m 20s
-
(Locked)
Close a recordset3m 8s
-
(Locked)
Delete the current record5m 28s
-
Find records within a table6m 37s
-
(Locked)
Move within a recordset4m 52s
-
(Locked)
Count the records in a recordset5m 26s
-
(Locked)
-
-
-
-