Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Home > TechHelp > Directory > Access > Datasheet View > < Navigation Pane | Excel >

Datasheet View

By Richard Rost   Richard Rost on LinkedIn Email Richard Rost   32 hours ago

Explained: Tables, Queries, Forms, Subforms


 S  M  L  XL  FS | Slo Reg Fast 2x Join Now

In this lesson, we will explain Microsoft Access Datasheet View, including how rows, columns, records, and fields work in tables, queries, and forms. We will compare Datasheet View with Design View, discuss editing, sorting, filtering, resizing, rearranging, and hiding columns, and clarify the difference between data changes and layout changes. We will also discuss when direct table use is appropriate, when forms are preferable, and walk through creating a datasheet subform to display a customer's related orders.

Bennett from Manchester, England (a Platinum Member) asks: I'm learning Microsoft Access and keep seeing Datasheet View when I open tables and queries. It looks like a spreadsheet, so I'm not sure whether it's just for looking at data or something I should use when building a database for other people. When is it appropriate, and when should I use forms instead?

Members

In the extended cut, we will learn how to freeze and unfreeze datasheet columns, add a totals row, show and hide columns with VBA, change column order and width with VBA, and dynamically swap between the Orders and Contacts subforms.

Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the files from class plus get access to the Code Vault. If you're not a member, Join Today!

Prerequisites

Links

Recommended Courses

Learn More

FREE Access Beginner Level 1
FREE Access Quick Start in 30 Minutes
Access Level 2 for just $1

Free Templates

TechHelp Free Templates
Blank Template
Contact Management
Order Entry & Invoicing
More Access Templates

Resources

Diamond Sponsors - Information on our Sponsors
Mailing List - Get emails when new videos released
Consulting - Need help with your database
Tip Jar - Your tips are graciously accepted
Merch Store - Get your swag here!

Questions?

Please feel free to post your questions or comments below or post them in the Forums.

KeywordsMicrosoft Access Datasheet View Explained: Tables, Queries, Forms, and Subforms

TechHelp Access, Datasheet View, datasheet subform, table Design View, updateable query, read-only query, sort and filter records, form Datasheet View, subdatasheet, continuous forms, Click to Add field, hide datasheet columns, totals row, record navigation

 

 

 

Start a NEW Conversation
 
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
 
Subscribe
Subscribe to Datasheet View
Get notifications when this page is updated
 
More Information
Transcript 
Have you ever opened a table or query in Access and seen that familiar spreadsheet-looking grid and wondered whether Datasheet View is just for looking at data or something you should actually use in a finished database?

Well, the answer depends on what you're building and who's going to use it.

Welcome to another TechHelp video brought to you by Access Learning Zone. I'm your instructor, Richard Rost.

Today, we're going to take a practical look at Datasheet View in Microsoft Access. You'll see what those rows and columns really represent, how Datasheet View differs from Design View, and why the same kind of grid can appear in tables, queries, and forms.

We'll also look at when directly working with a table is fine and when a form makes more sense. We'll look at a real-world example of using Datasheet View to show one customer's related orders.

So, if Datasheet View has seemed a little mysterious or just like Excel wearing an Access costume, you're in the right place.

Now, this is a beginner video, but members, stick around for the extended cuts because I've got some more cool stuff with some VBA and stuff coming up in the extended cut. So we'll get to that later.

Today's question comes from Bennett in Manchester, England, one of my Platinum members.

Bennett says, "I'm learning Microsoft Access, and I keep seeing Datasheet View when I open tables and queries. It looks like a spreadsheet, so I'm not sure whether it's just for looking at data or something I should use when building a database for other people. When is it appropriate, and when should I use forms instead?"

Well, Bennett, Datasheet View is more than just a way to look at a table, but it isn't always the best interface for every user. Let's look at what that grid really represents and where it fits in an Access application.

The short answer to your question is yes, Datasheet View is another way to look at data, but it can also be very useful as an interface for working with that data.

A datasheet is the familiar grid you see in Access. Each row represents one record. So, if we're looking at customers, one row is one customer. Each column represents a field, which is one piece of information about that customer, like their customer ID, first name, last name, phone number, and so on.

It looks a lot like an Excel worksheet, and that's why beginners usually feel at home with it right away. But remember, Access is not just a big spreadsheet. Access stores structured records in tables. You can retrieve those records in the table or with a query, and you can present them using forms.

The important thing for today is to remember that Datasheet View is just a display style. It's not a separate object type. You can see Datasheet View when you open a table, a query, or even a form that was designed to look like a grid.

So, for example, here's my TechHelp free template. We've got a Customer table, and that opens up in Datasheet View. You can open up a query, and that'll also open up in Datasheet View.

Now, forms, if you open up the Customer form, you can also switch most forms over to a Datasheet View. Right-click here and go to Datasheet View, and there's a Datasheet View for that form. You've got your familiar fields and records.

We've got our Customer table, or a Customer query, or a Customer form even. Across the top, you see the field names: Customer ID, First Name, Last Name, Address, and so on. Those are the fields.

The rows represent individual records. At the bottom of the datasheet, Access gives you the record navigation controls. You can move to the first record, previous record, next record, last record, and so on.

And one beginner gotcha: if the navigation bar says record five of 30, that doesn't mean you're looking at customer ID number five. A lot of people get that one confused just because, for example, here customer ID 15 happens to match 15 down here because I entered all of these in with no gaps.

But if you were to delete a few of these in the middle, for example, right now I'm on Tom Paris, who is customer ID 12, but he's only record seven now. And again, these customer IDs don't matter, but this is the record number that you're on. This is the customer ID. So keep those separate.

Now, one of the most important distinctions to make in Access is that working with the data is not the same thing as designing the structure that holds the data.

In Datasheet View, you're mostly working with the records. You might enter a new customer, correct the first name, sort by last name, that kind of stuff.

In Design View, you're working on the blueprint. You add First Name as a field, you can turn it into Short Text, you can make the Customer ID the primary key. This is working with the data in the Datasheet View. If you switch to Design View, now you're working on the design of the table itself.

You can add new fields, you can change properties. This is the structure of the table. This is the data in the table, the records that it contains.

You'll see the same thing when you're working with forms. This is the Form View where you're working with the data. If you go to Design View, this is the design, the structure of the table. You can add new text boxes and check boxes and combo boxes and all kinds of boxes.

Now, one thing I'm not particularly fond of is if you scroll all the way to the right here in table Datasheet View, you see this Click to Add column.

After I've soft added this feature in, I think, Access 2007, they added it to make tables a little more friendly for beginners, especially people coming over from Excel. You can just click here and start adding new data right here.

Smith.

And it just adds Field1. It's almost like adding columns to a spreadsheet, and I understand why they did it. It makes Access a little less intimidating for new users, but personally, I think it blurs the line between working with your data and designing the structure of your database.

Those are two very different things. I like to keep them separate.

Generally, I teach my students: if you're going to add fields to a table, switch over to Design View and add them here. That way, you're deliberately thinking about your field names, your data types, and your properties instead of just throwing another column into the table, and all you get is Short Text out of it.

If you want this to be a date, you have to come in here and change it. You want this to be some date, and then you get to make it a Date field. Be deliberate with your fields.

Now, there's nothing technically wrong with using Click to Add. I just don't like using it. I'm not a fan. So, if you like to use it, go ahead. It's just not how I prefer to build my databases.

Now, a datasheet can be a very efficient place to make routine changes. If you see a typo in one of the customer's last names, you can click right on the field and make the correction. Then, when you move to another record, at that point, Access commits the change to the underlying record.

And that, of course, is assuming that the data set is updateable. Not all of them are. Some queries are intentionally read-only. A form can also be configured to prevent additions, deletions, or edits.

For example, this is the Customer table. You can edit what you want in here. If you open up a query that is like a summary query, like here's my Customer Order Query, you can see it is a list of all my customers and orders.

You can come in here and make an edit, but be careful because this is based on Customers and Orders. So, if you edit something here, it'll edit the customer record underneath. See how they all changed? Be careful about that.

Some queries, like this Order Summary Query, you can't edit. And the giveaway is there's no blank row on the bottom, and this Add New Record button here is grayed out. So, this is not an updateable query.

And you'll see the same thing with forms. If you open up a form and go into its Datasheet View, you'll see down here that I can add a new record here. Some forms you can, some you can't.

Two of the most useful things you can do in a datasheet are sorting and filtering. Sorting changes the order in which the records are displayed, and this doesn't change the data at all. It just changes the sort order.

Filtering goes one step further. A filter tells Access, "Hey, right now, just show me the records matching this particular condition." Maybe you want to see customers from New York, all unpaid orders, or anyone with a particular last name.

And remember, a filter is a view of the data. It's not changing the data itself.

So, if I come into my Customer form and I switch to Datasheet View, let's make this a little bit bigger so we can see stuff in here. You can change the sort by clicking on the header up top here. Right-click, Sort A to Z or Z to A, whichever you like.

And if you want to filter this to, let's say, customers from Florida, you can right-click here and go to Equals Florida. And there's just the Florida people. I've got whole videos on sorting and filtering and all that stuff. I'll put links down below.

The important thing to remember right now while you're working with Datasheet View is none of this that I've done here has actually changed any data. You can turn that filter back off by clicking right there.

Now, datasheets are also practical because you can tailor the grid to the job at hand. This is one of the benefits that Datasheet View has over using, for example, a set form view.

If a field is too narrow, you can drag the right edge of its column heading to make it wider. In many situations, double-clicking on that boundary gives you a best fit, just like Excel does.

You can also drag a column heading to move that field to a different position. You can hide columns. For example, maybe the Customer ID is useful to you as a developer, but your people who are using the database don't need to see it. You can make basic formatting changes to improve readability.

For example, if you see that the email here is too narrow, you can come right there and click and drag, or you can double-click to get it to fit exactly as wide as it needs to be. Double-click.

Now, if you double-click, it'll also widen it on the title here. So sometimes, for things like Customer ID, I might intentionally do that. Or Is Active, you can bring it a little closer like that. Phone number, double-click. It widens it out. Address, double-click. That kind of stuff.

You can move these things around. If you want to bring Phone Number to the front, you can click on it and then click on it a second time and then drag it over here. It's not quite a double-click. You have to click to select that, let the mouse go, then click and drag, and that will rearrange it.

Now, sometimes you go and make some changes in your Datasheet View. Maybe you correct a customer's phone number, then you resize a column, hide another column, close the datasheet, and then Access asks you, "Do you want to save changes in the layout?"

You open up your Customer table, you make a few edits, you change a few things, you resize a few columns, and then when you go to close that, it says, "Do you want to save changes to the layout of the table?"

If you say no, that means you're declining to save those layout changes: the width, the order, whatever formatting changes you made. It doesn't mean that the data edits go away. The record edit was a data change. All those things you changed back here, those are saved as soon as you leave that record.

That column width change, that's a layout change, that's a display change. Those are two totally separate things. That's one thing I see beginners mix up all the time.

Oh, and speaking of another beginner mistake, lots of beginners think that just because they hide something, other people won't be able to find it.

If you say, let's say, the credit limit here, let's say you want to hide that from people. Click Hide. It's still there. All someone needs to know is to come in here and go to Unhide, and it puts it right back.

There's the list. You can just click on it. So don't think that hiding fields in your Datasheet View is the same as security. The data still exists. It's like putting a piece of paper behind another piece of paper on your desk. It's still there. Someone just needs to know how to look for it.

Now, here's something to also keep in mind: Datasheet View isn't just for tables. You can also use it with queries and forms, as we've seen so far.

Remember, a table is where Access stores your records, a query retrieves information from your tables and can also perform calculations, and a form is an interface you build for people to work with that data.

All three can display data in the same familiar grid, but they serve different purposes. And just because something looks like a datasheet doesn't necessarily mean you can edit it. Some queries are read-only. Some forms can be set up that way too.

So remember, Datasheet View is just how the information is displayed. What you're actually working with underneath determines what you can do with it.

Now, you may hear some people, myself included, say that I never let my end users work directly with tables. And that's generally how I go about looking at database design.

Tables should only be for the developer to work with when you're building a system for a company, a bunch of people to work with, to use the database, because if you let people in your tables, they can mess with stuff that they maybe shouldn't be messing with.

Now, if you're building a database for yourself or for a small team that understands Access and the data, working directly in the table can be perfectly reasonable. It's quick and flexible and often exactly what you need.

But as the application becomes more important, more complex, and used by people with limited computer experience, then I prefer limiting them to forms. Forms give you more control. You can place fields in a logical order, use labels that make sense, control navigation, limit editing and deleting, add validation. You can make it much harder for someone to accidentally change something that they shouldn't.

You can't do a lot of that stuff with tables.

So, personally, I usually prefer single-record forms and continuous forms for most day-to-day application screens. Now, that's my design preference. It's not some Access law carved into a stone tablet.

Datasheets still have an important place, and they're especially good when users need to scan, compare, sort, or review several related records at once.

And that brings us to a really useful, real-world example. Here's one of my favorite uses for a datasheet: a subform.

Let's say you've got a Customer form that shows a customer, a single form, and you want to show a summary of their orders down below. Well, that's a perfect example of something that you can easily build with a subform and using a datasheet.

So, you can move things around and resize columns, all that. Let me show you how to do it real quick.

So, in my database, I've got the Customer form. Now, I have a query over here called the Order Summary Query. Order Summary Q. It's got the Order ID, the Order Date, the Customer, whether it's paid, and the Order Total.

And if you look at the Design View, it's a little complex. It mixes together the Order table and the Order Details, and it's a Group By query. I've got a whole separate video on how I built this query.

But once you've got the query built, it's very easy to take this and make it a subform on your Customer form. Watch this: go to Design View. Open it up, come like this. Make it bigger.

Now, I'm just going to take that query, click and drag, and drop it right here. And then the wizard starts up, the Subform Wizard.

Now, we have to relate the records from this form to this new query that we're building a subform for. So, what do we want to do? Choose from a list here or define your own relationship.

Well, here's the relationship I want: show Order Summary Q for each record in the Customer table using Customer ID. So, this is a customer. This has a customer in it. So, it's going to match these up based on Customer ID.

I'm going to hit Next. Give it a good name. I don't like that as a name. Let's call it OrderSubformF. It's going to create a subform, and then hit Finish.

There it is right there. I like to delete that little label that comes in. Delete, we don't need you. I'm going to resize this just like that. Maybe make this a little bit bigger. I'm going to save it, close it, and open it.

Now, normally it comes in like this, and you'll see any records in here. I don't think Frodo has any orders. Let's see who's got some orders in here. Let's sort this by Customer ID. There we go. There's me. I've got one order, and there it is.

Let's give me some more orders real quick. I'm going to go into my Order table, and I'm just going to put a bunch of ones in here for the Customer ID. I'm going to give me a bunch of orders. I just ended up spending a whole lot of money that I wasn't planning on spending.

But now I've got a bunch of orders in here. There you go.

And in here, we can do things like hide that column. If we don't want everybody to see the Order ID, hide that field. You can hide the Customer ID because these are all for customer one. We don't need that. Hide that guy.

You can resize these. I just see that. That's something you have to also be careful about. If you come right up against a hidden column and do that, that's another way to make it visible again. So be careful about that.

There's the Order Total. You can format these things too. If you want to format this as a currency, just do it in Form Design View.

What I do here is I'm going to save this, close this form. Now, here's the form down here that the wizard created, the OrderSubformF. Right-click, go to Design View.

Here's what the Form Design View looks like. This Order Total, if you open up its properties, go to Format and set the format to Currency. Save it, close it, close it. Now, when I open it up again, it's going to get that format.

So, you can make changes in the Design View of the form, and they'll still show up here in the Datasheet View.

Now, there's lots more you can do with Datasheet View. I love using them as subforms. I almost never use them as big parent forms. I use them all the time as subforms.

And in the extended cut for the members, we're going to do a lot more with this order subform. I'm going to show you how to freeze and unfreeze columns. We're going to add a built-in totals row on the bottom so you get your totals down here.

I'm going to show you how to show and hide columns using VBA. So, let's say you don't want your people seeing the Is Paid. You can turn it on or off. We'll do it with a button, but you can very easily do it in your VBA code based on whatever user is logged on.

Some people get to see these fields. Some people don't see those. However you want to do it, I'll show you how to change the column order and the width with VBA, and we'll swap subforms dynamically.

You can switch between the Contacts subform and the Order subform. We've done that before in a video, but we're going to do it again just because it's really cool.

Check it out. We can hide the Paid column. We can put the Contacts subform there. Go back to the Order form. Lots of cool stuff you can do with VBA.

And again, it's going to be in the extended cut for the members. Silver members and up get access to all of my extended cut videos. Not just this one, all of them, and there's lots of them. There's hundreds of them.

And, of course, Gold members can download these databases, and everybody gets some free training. It's a party. So click that blue Join button today for more information.

All right, so let's wrap this up.

Datasheet View is Access's rows-and-columns grid interface. Just like Excel, each row is a record. Each column is a field. It looks like a spreadsheet, but it is working with structured database records. See, you can't just stick a text value in a date field, for example.

You can use Datasheet View with tables, queries, and forms. A table stores data, a query retrieves, processes data, or performs calculations, and a form gives users a nice, pretty interface.

Similar-looking grids can have very different purposes and different editing rules. Remember, the difference between editing data and adjusting a layout: two different things. So, when Access asks you if you want to save something, look to see what it's asking you if you want to save. If you want to save the layout changes, you want to save the Design View, that kind of stuff.

And remember, hiding a column is presentation control, not security.

And don't think of datasheets as either good or bad, although I kind of think of them as bad sometimes. It depends on the situation. Think about the job and the people using the database.

Direct table work, although rare, can be fine for a small team of people who understand Access. But forms are often better for a polished application or for people with limited experience using databases.

And once you understand all that, Datasheet View stops being one of those mysterious Access things and becomes another useful tool for your toolbox, another Lego to play with.

Now, there's lots more to learn. Here are some other videos you might find interesting.

If you want to learn more about subforms, go watch this video. Once you've got your relationships set up in your database, you can use something called a subdatasheet. These will show up in your datasheets.

A subdatasheet is a datasheet under a datasheet. So, for example, in my database earlier, when I opened up the Customer table, you see these little pluses over here. Well, I've got my Customer table related to my Order table. So, you can open up a subdatasheet underneath the record for that customer and see all of their orders.

So, yeah, that's a subdatasheet. And this video explains those in more detail.

Now, like I said earlier, I personally prefer using continuous forms more often than not. I like the way continuous forms look. They give you more control as a designer.

If you're building a database for people who are not familiar with databases, sometimes continuous forms are a little easier for them to work with.

In my database, for example, I've got this Customer List. This is a continuous form. I have more control over it. The end users can't easily move things around or change the field widths and stuff like that.

So, there are some trade-offs, but there are benefits too. So, it's six of one and half a dozen of the other, depending on who you're building the database for.

If you want to get more into this stuff, check out my Access Expert Level 3 class, where we start going into subforms in detail. In Expert Level 8, we go into order entry system subforms.

In my Access Relationships Seminar, I cover lots and lots of stuff with subforms and subdatasheets and relationships between tables and all kinds of stuff. I'll put links to all this stuff down below if you're interested.

So now you know about Datasheet View, and that is going to be your TechHelp video for today.

I hope you learned something. Live long and prosper, my friends. I'll see you next time.

And members, I'll see you in the extended cut.
Intro 
In this lesson, we will explain Microsoft Access Datasheet View, including how rows, columns, records, and fields work in tables, queries, and forms. We will compare Datasheet View with Design View, discuss editing, sorting, filtering, resizing, rearranging, and hiding columns, and clarify the difference between data changes and layout changes. We will also discuss when direct table use is appropriate, when forms are preferable, and walk through creating a datasheet subform to display a customer's related orders.
Quiz 
Q1. What does each row represent in Access Datasheet View?
A. One record
B. One field
C. One table relationship
D. One form section

Q2. What does each column represent in Access Datasheet View?
A. A report page
B. A field
C. A database object
D. A record navigation button

Q3. Which Access objects can be displayed in Datasheet View?
A. Tables only
B. Queries only
C. Tables, queries, and forms
D. Reports and macros only

Q4. What is the main difference between Datasheet View and Design View?
A. Datasheet View is for editing records, while Design View is for defining structure and properties
B. Datasheet View is for printing, while Design View is for importing data
C. Datasheet View is read-only, while Design View is for entering records
D. Datasheet View is only for forms, while Design View is only for tables

Q5. If the record navigation bar says "Record 5 of 30," what does that mean?
A. The current record has an ID value of 5
B. The current record is the fifth displayed record out of 30 records
C. The current table contains five fields
D. The current record has five related records

Q6. Why is it generally better to add new table fields in Design View instead of using Click to Add?
A. Design View lets you deliberately choose field names, data types, and properties
B. Click to Add permanently deletes existing fields
C. Design View prevents users from entering data
D. Click to Add can only create Number fields

Q7. When is a record edit normally saved in a datasheet?
A. Only when the entire database is closed
B. When the user switches to another record
C. Only after clicking Save As
D. When the table is printed

Q8. Which type of query is commonly not updateable?
A. A simple query based on one table
B. A query that displays customer records
C. A summary query that uses totals or grouping
D. A query sorted by last name

Q9. What does sorting records in Datasheet View do?
A. It changes the actual values in the records
B. It changes the order in which records are displayed
C. It deletes records that do not match the sort
D. It changes the primary key values

Q10. What does filtering records in Datasheet View do?
A. It permanently removes records from the table
B. It changes the field data type
C. It shows only records that match a condition
D. It creates a new table automatically

Q11. If Access asks whether to save layout changes when closing a datasheet, what kinds of changes is it referring to?
A. Record edits such as changing a customer's phone number
B. Column widths, column order, and hidden columns
C. Changes to primary key values
D. Changes to relationships between tables

Q12. Why is hiding a column in Datasheet View not a security feature?
A. Hidden columns are deleted from the table
B. Anyone who knows how can unhide the column
C. Hidden columns cannot contain sensitive data
D. Hiding a column automatically encrypts it

Q13. When is direct work in tables most appropriate?
A. When building a polished application for inexperienced users
B. When users need strict data-entry validation and navigation controls
C. For a small team that understands Access and the data
D. When sensitive fields must be secured

Q14. Why are forms often preferable to tables for end users?
A. Forms can provide controlled navigation, validation, logical layouts, and editing restrictions
B. Forms permanently prevent all data changes
C. Forms can only display one field at a time
D. Forms do not use tables or queries

Q15. What is a particularly useful real-world use of Datasheet View in a form?
A. Displaying a customer's related orders in a datasheet subform
B. Replacing all tables in the database
C. Creating a primary key automatically
D. Encrypting customer records

Q16. In a customer form with an orders subform, what links the displayed orders to the current customer?
A. The customer name formatted as currency
B. A relationship matching Customer ID values
C. The order total field
D. The record navigation bar

Q17. What is one advantage of using a datasheet as a subform?
A. Users can easily scan, compare, sort, and review multiple related records
B. It prevents all records from being edited
C. It removes the need for table relationships
D. It automatically creates reports

Q18. What should you remember if a datasheet looks similar to another datasheet but behaves differently?
A. All datasheets are always editable
B. The display style alone does not determine whether data can be edited
C. Datasheets can only be based on tables
D. Forms cannot be displayed as datasheets

Answers: 1-A; 2-B; 3-C; 4-A; 5-B; 6-A; 7-B; 8-C; 9-B; 10-C; 11-B; 12-B; 13-C; 14-A; 15-A; 16-B; 17-A; 18-B

DISCLAIMER: Quiz questions are AI generated. If you find any that are wrong, don't make sense, or aren't related to the video topic at hand, then please post a comment and let me know. Thanks.
Summary 
Today's video from Access Learning Zone is about Datasheet View in Microsoft Access. Datasheet View is the familiar rows-and-columns grid that many people associate with spreadsheets. It can appear when working with tables, queries, and forms, so it is important to understand what it represents, when it is useful, and when another type of interface is a better choice.

A datasheet displays database records in a grid. Each row represents one record, and each column represents one field. For example, in a Customer table, one row might represent a single customer, while the columns contain fields such as CustomerID, FirstName, LastName, Address, Phone, and Email.

Datasheet View may look similar to an Excel worksheet, which can make it comfortable for new Access users. However, Access is not simply a spreadsheet program. Access stores structured records in tables, retrieves and processes information with queries, and presents information to users through forms.

The key point is that Datasheet View is a display style, not a separate kind of Access object. A table can open in Datasheet View. A query can also open in Datasheet View. In addition, a form can be designed or switched to display records in Datasheet View.

Although these objects may all look similar on screen, they have different roles in a database. A table stores the actual data. A query retrieves, combines, filters, calculates, or summarizes information from one or more tables. A form provides an interface that users can work with.

In a datasheet, the field names appear across the top of the grid. The records appear below them. Access also includes record navigation controls at the bottom of the window, allowing you to move to the first, previous, next, or last record, or create a new record when additions are allowed.

One common beginner misunderstanding involves the record number displayed in the navigation controls. If Access says that you are on record 5 of 30, that does not mean you are viewing the record with an ID of 5. It only means that the current record is the fifth record in the current displayed set. The primary key value, such as CustomerID, is a separate value. If records have been deleted or filtered, the record number and the CustomerID may be very different.

It is also important to distinguish between editing data and designing the structure of the database.

In Datasheet View, you are generally working with the records themselves. You might add a customer, fix a misspelled name, change an address, sort records, or filter the list to show only certain records.

In Design View, you are working with the blueprint of the object. For a table, this means adding or removing fields, selecting data types, setting field sizes, defining primary keys, and configuring other field properties. For a form, Design View is where you add and arrange controls such as text boxes, labels, check boxes, combo boxes, buttons, and subforms.

I generally recommend being deliberate when creating fields in a table. Access includes a Click to Add column in table Datasheet View. This feature was added to make table design feel more familiar to people who are used to Excel. It allows you to create a new field directly from the datasheet.

There is nothing technically wrong with using Click to Add, but I prefer not to use it. It can blur the distinction between entering data and designing the structure that stores the data. When adding a field, I prefer to switch to Table Design View, choose a meaningful field name, select the appropriate data type, and configure any needed properties.

For example, if you add a field from the datasheet, Access may initially create it as Short Text. If the field should store dates, currency, Yes/No values, or numeric values, you will still need to adjust the data type later. Designing fields intentionally helps prevent problems as the database grows.

Datasheet View can be a very efficient way to make routine edits. If you notice a typo in a customer's name, you can edit the field directly in the grid. When you move to another record, Access saves, or commits, the change to the underlying record.

Of course, this only works if the recordset is updateable. Not every datasheet allows editing. Some queries are intentionally read-only. Forms can also be configured to prevent users from adding, editing, or deleting records.

For example, a simple Customer table is normally updateable. You can add customers, edit their information, or delete records if deletion is allowed. A query that combines customer and order data may also allow certain edits, but you must be careful. If the query includes repeated customer information for multiple orders, changing a customer field in one row may update the underlying Customer record and therefore affect every place that customer appears.

Summary queries are commonly read-only. A query that uses totals, grouping, aggregate functions, or certain joins may not allow changes. One indication is that Access does not display a blank new-record row at the bottom, and the New Record button is unavailable.

Sorting and filtering are two of the most useful features of Datasheet View.

Sorting changes the order in which records are displayed. For instance, you might sort a Customer datasheet by LastName in ascending or descending order. Sorting does not change the actual stored data. It only changes how Access currently displays the records.

Filtering limits the records that Access shows. You might filter a Customer datasheet to display only customers in Florida, customers with a particular last name, or customers whose accounts meet a certain condition. You might filter an Orders datasheet to show only unpaid orders.

A filter is only a temporary view of the data. It does not modify or delete the records that are not currently visible. Removing the filter returns the datasheet to its normal set of records.

Datasheet View also allows you to customize the layout of the grid. You can resize columns, rearrange them, hide columns, and make basic formatting adjustments. If a field is too narrow to display its values, you can widen the column. In many cases, you can use AutoFit to make a column wide enough for its contents.

You can also move a field to another position in the datasheet. For example, if Phone is more important to your users than Address, you can move the Phone column closer to the left side of the display.

Hiding columns can be useful for presentation purposes. For example, a CustomerID field may be useful to a developer or advanced user but unnecessary for someone who only needs to work with names and contact information.

However, hiding a field is not security. Anyone who understands Access can unhide hidden columns. The data remains in the underlying table, query, or form record source. Hiding information only changes what is currently displayed. It does not prevent someone from accessing the information.

Another point that often confuses beginners is the difference between saving data edits and saving layout changes.

When you edit a field value and leave the record, Access saves that data change. If you later close the datasheet and Access asks whether you want to save layout changes, it is asking about things such as column widths, column order, hidden fields, and formatting changes. Choosing not to save the layout does not undo the data edits you made earlier.

Tables, queries, and forms can all display information in a datasheet, but they should not necessarily all be used the same way.

I generally do not allow typical end users to work directly in tables. Tables should usually be reserved for the developer or database administrator. If users have unrestricted access to tables, they may accidentally alter data, delete records, change relationships, or modify fields that should not be touched.

That said, working directly with a table can be perfectly reasonable in a small database used by one person or a small team that understands Access and the data. It is quick, flexible, and sometimes exactly what is needed.

As a database becomes more important, more complex, or more widely used, forms are usually a better choice. Forms give you much more control over the user experience. You can organize fields logically, use labels that make sense to the user, control where users can navigate, limit what records can be edited or deleted, add validation, and prevent accidental changes.

For many applications, I prefer single-record forms and continuous forms for day-to-day use. A single-record form displays one record at a time and is often ideal when users need to focus on entering or reviewing detailed information. A continuous form displays multiple records in a controlled layout and gives the developer more control than a standard datasheet.

Datasheet View still has an important role in a finished application. It is especially useful when users need to scan, compare, sort, filter, or review multiple related records at once.

One of my favorite uses for Datasheet View is in a subform.

For example, imagine a Customer form that displays one customer at a time. You may want to show a list of that customer's related orders below the customer information. A datasheet subform is an excellent solution for this.

The Customer form can display the main customer details, such as name, address, phone number, and email. The subform can display a summary of the customer's orders, including fields such as OrderID, OrderDate, IsPaid, and OrderTotal.

To create this type of subform, you first need an appropriate query. An order summary query might combine the Orders table and Order Details table, calculate the total for each order, and include the CustomerID field so Access can match each order to the correct customer.

Once the query is available, it can be used as the record source for a subform. The subform is then placed on the Customer form and linked through the CustomerID field. The main form uses CustomerID from the current customer record, and the subform uses CustomerID from the order summary query. Access automatically displays only the orders that belong to the customer currently shown on the main form.

After creating the subform, you can customize its appearance. You may decide that users do not need to see OrderID or CustomerID in the order list. Those fields can be hidden from the datasheet display. You can adjust column widths so dates, payment status, and order totals are easy to read.

You can also format fields through the subform's Design View. For example, an OrderTotal control can be formatted as Currency so that values display with the appropriate currency symbol and decimal places. Design changes made to the subform will be reflected when it is displayed as a datasheet on the main Customer form.

Datasheet subforms are useful because they combine the benefits of a structured form with the flexibility of a grid. The user can focus on one customer while still seeing that customer's related orders in a clear, sortable, filterable list.

Also, in today's Extended Cut, we will take the Order subform further. I will show you how to freeze and unfreeze columns, add a built-in totals row to the bottom of the datasheet, and use VBA to show or hide fields. This can be useful when certain users should see information such as payment status while others should not.

I will also demonstrate how to use VBA to adjust column order and column widths, and how to dynamically swap subforms. For example, the same area on a Customer form can display an Orders subform at one time and a Contacts subform at another time.

The important thing to remember is that Datasheet View is neither automatically good nor automatically bad. It is simply another tool in Access.

Use a datasheet when a grid is the best way for users to review and work with multiple records. Use forms when you need a more controlled, polished, and user-friendly interface. Avoid giving inexperienced users unrestricted access to tables, especially in important or shared databases.

Datasheet View becomes much less mysterious once you understand that it is simply a rows-and-columns display style. Rows are records. Columns are fields. Tables store data. Queries retrieve and process data. Forms provide an interface for users. All three can sometimes display information in a datasheet, but the underlying object determines what the user can actually do.

You can find a complete video tutorial with step-by-step instructions on everything discussed here on my website at the link below. Live long and prosper, my friends.
Topic List 
Datasheet View in Access
Records, fields, rows, and columns
Datasheet View in tables, queries, and forms
Record navigation versus primary key values
Datasheet View versus Design View
Adding table fields in Design View
The Click to Add column
Editing data in updateable datasheets
Updateable and read-only queries
Sorting and filtering datasheet records
Resizing, moving, and hiding columns
Data edits versus layout changes
Why hidden columns are not security
When to use tables versus forms
Using datasheets as subforms
Creating an order summary datasheet subform
Formatting datasheet fields in Form Design View
Article 
Datasheet View is the familiar rows-and-columns grid used throughout Microsoft Access. It looks similar to an Excel worksheet, which makes it approachable for new users, but it represents database records rather than a free-form spreadsheet.

In a datasheet, each row is one record and each column is one field. For example, in a customer list, one row might represent one customer, while the columns could contain Customer ID, First Name, Last Name, Phone Number, Email Address, and other customer details.

Datasheet View is not a separate type of Access object. It is simply one way Access can display data. You can see it when opening a table, a query, or a form that has been configured to use a datasheet layout.

A table stores the underlying data. A query retrieves, filters, combines, summarizes, or calculates data from one or more tables. A form provides an interface for working with data. All three can look like a datasheet, but they serve different purposes.

When you open a table in Datasheet View, you are looking directly at the records stored in that table. This can be convenient for entering a few records, checking values, or making a quick correction. If a customer's last name is misspelled, you can click into that cell, type the correction, and move to another record. Access saves the record change when you leave the record.

However, working with a table is different from designing the table.

Datasheet View is mainly for working with records. Design View is for changing the table's structure. In Design View, you define fields, choose data types, set field properties, establish a primary key, and make other structural decisions. For example, if you need to add a BirthDate field, Design View lets you deliberately create it as a Date/Time field and decide whether it is required, indexed, formatted, or validated.

It is possible to add fields directly from Datasheet View using the Click to Add column. This can be useful for quick experimentation, but it is usually better to add fields in Design View. Designing fields deliberately helps you choose meaningful names and appropriate data types instead of treating the database like a spreadsheet where new columns are added casually.

The record navigation bar at the bottom of a datasheet is another area that can confuse beginners. If Access says you are viewing record 5 of 30, it means you are currently on the fifth displayed record in the datasheet. It does not mean that the record's primary key value is 5.

For example, a customer might have Customer ID 12 but be displayed as record 7 because earlier records were deleted, filtered out, or sorted differently. Record position and primary key values are separate concepts. A primary key identifies a specific record. The navigation bar shows where you are in the current displayed recordset.

Datasheets are often editable, but not always. Whether you can add, edit, or delete records depends on the object and its settings.

A table datasheet is generally editable unless the table itself is restricted or opened in a mode that prevents editing. Many queries are also editable. If a query displays fields from related tables, editing a value in the query may update the corresponding record in the underlying table. This is useful, but it requires care. If the same customer appears on multiple rows because that customer has multiple orders, changing the customer's phone number in one row changes the actual customer record and may therefore appear changed on all rows.

Some queries cannot be edited at all. Summary queries, aggregate queries, and certain complex joins are commonly read-only. A common sign that a datasheet is not updateable is that there is no blank new-record row at the bottom and the button for adding a new record is unavailable.

Forms can also be editable or read-only. A form may allow users to add records, edit existing records, delete records, or only view information. The fact that a form looks like a datasheet does not automatically mean that it allows changes.

Sorting and filtering are two of the most useful datasheet features. Sorting changes the order in which records are displayed. For example, you can sort customers by Last Name, City, or Date Created. Sorting does not change the stored data. It only changes the order in which Access presents the records.

Filtering limits the records currently displayed. You might filter a customer list to show only customers from Florida, only active customers, or only customers with a certain last name. You might filter an order list to show only unpaid orders. Like sorting, filtering does not change the stored data. It creates a temporary view of the data that matches the condition you selected.

Datasheet View also allows users to adjust the layout. You can resize columns by dragging the edge of a column heading. In many cases, double-clicking the edge automatically adjusts the width to fit the contents. You can drag a column heading to change the column order. You can also hide columns that are not useful for the current task.

For example, a user may need to review order dates, payment status, and totals, but may not need to see internal IDs. Hiding the ID columns can make the datasheet easier to read.

It is important to understand the difference between data changes and layout changes. Editing a customer's address is a data change. Changing the width of the Address column is a layout change. Reordering fields or hiding a column are also layout changes.

When Access asks whether you want to save changes while closing a datasheet, read the message carefully. If it asks whether you want to save layout changes, it is referring to things such as column widths, column order, and hidden fields. Declining to save layout changes does not undo the data edits you made. Those edits were saved when you moved away from the changed record.

Hiding a field should never be treated as security. A hidden column still exists in the datasheet and can often be restored through the Unhide Columns command. Hiding fields is only a presentation choice. If certain users should not see sensitive data, such as salary information, credit limits, or confidential notes, you need real security and interface controls rather than simply hiding the column.

Whether users should work directly in tables depends on the purpose of the database and the skill level of the people using it.

For a personal database or a small team that understands Access well, direct table use can be perfectly reasonable. It is fast, flexible, and convenient for routine data entry or maintenance. Developers also commonly work directly with tables while building and testing a database.

For a more polished database application, especially one used by people with limited Access experience, forms are usually a better choice. A form can present fields in a logical order, use clear labels, provide instructions, enforce validation rules, limit deletions, control which fields can be edited, and simplify navigation. Forms can also include buttons, lookup lists, calculated displays, and other features that make the application easier and safer to use.

A single-record form is often useful when users need to focus on one customer, order, employee, or other record at a time. A continuous form can be useful when users need to browse multiple records while still having a more controlled layout than a datasheet provides.

Datasheet View is especially valuable when users need to scan, compare, sort, filter, or review multiple related records at once. One of its best uses is as a subform on a main form.

For example, imagine a Customer form that shows one customer at a time. At the top of the form, you might display the customer's name, address, phone number, and email address. At the bottom, you could place an Orders subform in Datasheet View. That subform could show all orders for the currently displayed customer, including the order date, payment status, and order total.

To create this type of interface, first build a query that returns the order information you want to display. The query might include Order ID, Order Date, Customer ID, payment status, and a calculated or summarized order total. Then add that query to the Customer form as a subform.

The key step is linking the main form and the subform through the matching field, usually Customer ID. The main form supplies the current Customer ID, and the subform displays only records with that same Customer ID. When you move from one customer to another, the orders datasheet automatically updates to show that customer's related orders.

Once the subform is in place, you can adjust the columns to make the display more useful. You may hide the Customer ID because every row already belongs to the customer shown on the main form. You may also hide the Order ID if it is only an internal value. You can resize columns, place the most useful fields first, and format order totals as currency through the form's design settings.

Datasheet subforms are useful because they combine a focused parent record with a compact list of related records. A customer can be shown in a clean, single-record form while their many orders are displayed in a grid beneath it. The same pattern works for many database relationships, such as a vendor with purchase orders, an employee with time entries, a project with tasks, or an invoice with line items.

For more advanced database applications, code can be used to customize datasheet behavior. For example, code can show or hide columns based on the current user's role, adjust column widths or order automatically, display totals, freeze important columns while users scroll horizontally, or swap one subform for another based on a button click. The goal of this kind of automation is not to replace good design, but to make the interface clearer and more appropriate for different users and tasks.

Datasheet View is neither automatically good nor automatically bad. It is a practical tool. It is excellent for reviewing many records at once, making quick edits, sorting, filtering, and displaying related records in subforms. Forms are usually better when you need more control, better guidance for users, or stronger protection against accidental changes.

The most important idea is that Datasheet View is a display style. A table, query, and form may all look like a grid, but what you can do in that grid depends on the object underneath it and the settings applied to it. Once you understand that distinction, Datasheet View becomes a useful part of a well-designed Access database rather than just something that looks like Excel.
Primary Topics 
Datasheet View fundamentals, records and fields, Datasheet View versus Design View, tables queries and forms, editable versus read-only recordsets, sorting and filtering, datasheet layout changes, forms versus direct table access, datasheet subforms
Secondary Topics 
Click to Add fields, record navigation versus primary key values, hidden columns versus security, formatting datasheet form fields, parent-child form relationships
 
 
What's This?

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 11/24/2026 5:43:42 PM. PLT: 3s
Keywords: TechHelp Access, Datasheet View, datasheet subform, table Design View, updateable query, read-only query, sort and filter records, form Datasheet View, subdatasheet, continuous forms, Click to Add field, hide datasheet columns, totals row, record navigati  PermaLink  Microsoft Access Datasheet View Explained: Tables, Queries, Forms, and Subforms