98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsPrevious article Next article Access articles
How To Filter And Sort Data In Access 2010 Tables
Tue 21st September 2010
In this example I will use the Northwind database that comes with the Access programme, but feel free to use any table you want. Open the table by double clicking the name in the list. When the table opens, notice that the headings all appear along the top of the table in blue, with a small arrow next to the name. Click on the arrow next to the Last Name column. This will show a pop up box that contains all information necessary to filter.
The most obvious filter method is on the name itself. Whatever rows are in the table appear in an alphabetically ordered list with check boxes next to them. This means that the user can pick one or more specific names on the list and when the OK button is clicked only the chosen records will be visible. Be aware that this does not erase or change any information on the table. If you close the table down and re-open it, all records will be present as it is merely changing the ones that are visible at the current time. If you select the incorrect record then follow the same steps to bring up the selection again by clicking the arrow next to the column title. Change your selection as required. Note that if there is more than one record that is the same, for example more than one person with the same surname, this will only be shown once on the selector. If you pick 'Smith' and there are three people with that name then three records will be present in the viewer which makes it handy to select groups of data, for example all people labelled 'Active.'
While this method can be useful for searching groups, it is tedious if you are attempting to search for specific records among thousands. Even if they are alphabetical, you may need to scroll down the list and this will waste valuable time. Instead it is worth considering the Text Filters. Click the arrow next to the column title and choose text filters. A range of filters will be shown such as Equals, Begins With, Contains etc. Select an appropriate filter for your data. If you have one record with the surname Jones and one with Jordan then 'Begins With' Jo would return two results.
Once you have applied a filter then you can continue to apply more, but the new filters will only be applied to the data already returned. If you want to choose a new filter to run on all the original records then you must first remove the filters and begin from scratch. Click the arrow next to the Column name and choose 'Clear Filter From [column Name].' In the viewer all records should re-appear.
Filtering can also be a useful tool to find records that are missing information. Sometimes databases do not always force the user to enter data and incomplete records are accepted. This can become a major problem further down the line and data cleansing will be necessary. An example would be a simple CRM system where the client names have been entered without the Address. It is worth checking the database every now and again to check that this is not happening frequently. Use the filter to show the list and select 'Blanks' which will show all records where the field you are filtering on is blank. It would then be possible to copy and paste all the relevant data into an excel sheet to send to the department responsible for entering correct data.
It is also possible to sort the data and the sort can be saved when the table closes so that the table always re-opens with the sorting that you have designated. Click the arrow next to the column name and choose either 'Sort A to Z' or 'Sort Z to A'. This will force the data in the order you specify and can help when locating the information you require. It also means that reports will automatically be ordered in this way which may save a step later on.
It is worth remembering that all the things discussed in this article can be done with queries and with reports. The advantage to this is that a query or report is not directly accessing data and therefore no mistakes can be made by accidentally making changes to the live data. Working directly on the data at table level should only be attempted with care!
Author is a freelance copywriter. For more information on database+courses+london, please visit https://www.stl-training.co.uk
Original article appears here:
https://www.stl-training.co.uk/article-1124-how-filter-and-sort-data-in-access-2010-tables.html
London's widest choice in
dates, venues, and prices
Public Schedule:
On-site / Closed company:
TestimonialsFramestore
Crew Manager Anthony Rouse Excel Intermediate Overall I think the process of teaching the course was very well planned and thought out. The class ran at a comfortable pace for everyone involved and if anyone misunderstood a process it was quickly rectified. I would be very interested to try the advanced class moving forward. Royal Museums Greenwich
Bookings And Customer Service Coordinator Sophie King Excel Intermediate No suggestions, I found the course very interesting and useful. We seemed to cover a lot of info, but in a way that was easy to follow and understand. We also went over some basics (in formulas for example) before stepping things up, which was helpful. National Treatment Agency
Programme Manger Kieran Lynch Team Performance Management Very live and interactive session. Trainer responded well to 'work experience' and relating this to using the material on course to 'solve' the problem. Very solution foucsed, honest and kept expectations at the right level. Have already used session on LAMA at work this week. |
PUBLICATION GUIDELINES