Use an Access function to add a new field to your table
Takeaway: You need to add a new field to a table in your Access database, but you don't have time to manually update hundreds of records. Discover how easy it is to add the field to your table.
You are sending form letters to all your employees regarding their pension benefits. You need to let them know their exact vesting date, but the Access employee database table does not list that date. The table does, however, list the employees' hire dates. Since you know that employees are vested after 10 years of service, you can quickly add this data to the table by following these steps:
- Open the Employees database and click on Queries in the database window.
- Click New, select Design View, and then click OK.
- Select the Employees table and click Add, and then click Close.
- Double-click each of the fields in the Employees table to add them to the Field cells.
- Click the next empty Field: cell and enter the following expression:
Date_vested: DateAdd("yyyy",10,Employees![Hire Date])
When you run the query, it will include a new field, Date_vested, with the specific date for each particular employee. You can use the Make_table option in the Query Design screen to create a new table from this query.
Miss a tip?
Check out the Microsoft Access archive, and catch up on our most recent Access tips.
Help users increase productivity by automatically signing up for TechRepublic's free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.
Print/View all Posts Comments on this article
SponsoredWhite Papers, Webcasts, and Downloads
- Improving Decision Making Through Enterprise Information Management SAP
- How Business Networks are Evolving Today SAP
- Choosing the Best CRM for Your Organization Oracle
- Yankee Group: Software as a Service Dramatically Improves CRM Success Oracle
- It's All About the Salesperson: Taking Advantage of Web 2.0 Oracle
Article Categories
- Security
- Security Solutions, IT Locksmith
- Networking and Communications
- E-mail Administration NetNote, Cisco Routers and Switches
- CIO and IT Management
- Project Management, CIO Issues, Strategies that Scale
- Desktops, Laptops & OS
- Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
- Data Management
- Oracle, SQL Server
- Servers
- Windows NT, Linux NetNote, Windows Server 2003
- Career Development
- Geek Trivia
- Software/Web Development
- Web Development Zone, Visual Basic, .NET

