Skip to Content
Access Cookbook
book

Access Cookbook

by Andy Baron, Ken Getz, Paul Litwin
February 2002
Intermediate to advanced
720 pages
21h 37m
English
O'Reilly Media, Inc.
Content preview from Access Cookbook

Use Labels or Other Controls for Record Navigation

Problem

You don’t want to use images for the navigation buttons on your pages; you’d prefer to simply use labels that say “Previous”, “Next”, and so forth.

Solution

The default navigation images function as they do because each is a member of a particular class. You can use another type of control for navigation by adding the correct class name to the control’s ClassName property.

Our solution, found in the Custom Nav Text DAP in the sample database, uses labels to create the look shown in Figure 13-5.

This page uses navigation labels instead of images

Figure 13-5. This page uses navigation labels instead of images

To use labels as navigation controls, follow these steps:

  1. Create a new page and add whatever data you’d like.

  2. Delete all navigation control buttons from the navigation section.

  3. Place labels in the navigation control section for each navigation function (First, Previous, Next, Last).

  4. Select the “First” label and view its properties sheet. The ClassName property should read:

    MSTheme-Label
  5. Change the ClassName property so that it includes the appropriate class for the first navigation button, msoNavFirst. The ClassName property should now read:

    MSTheme-Label msoNavFirst
  6. Change the ClassName properties for each navigation control to include the class name for its function. Table 13-1 lists all the classes for navigation controls.

    Table 13-1. Navigation functions and their ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

ADO.NET Cookbook

ADO.NET Cookbook

Bill Hamilton
Jupyter Cookbook

Jupyter Cookbook

Toomey, Nikhil Borkar, Nikhil Akki, Juan Tomás Oliva Ramos
Access Cookbook, 2nd Edition

Access Cookbook, 2nd Edition

Ken Getz, Paul Litwin, Andy Baron
Access Data Analysis Cookbook

Access Data Analysis Cookbook

Ken Bluttman, Wayne S. Freeze

Publisher Resources

ISBN: 0596000847Catalog PageErrata