On TV.com: THE GIRLS NEXT DOOR photos

Use an Access function to add a new field to your table

Tags: Microsoft Office, Databases, Mary Ann Richardson, Microsoft Access, Microsoft Office Suite Access Tips Newsletter

  • Save
  • Print
  • Recommend
  • 6

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:

  1. Open the Employees database and click on Queries in the database window.
  2. Click New, select Design View, and then click OK.
  3. Select the Employees table and click Add, and then click Close.
  4. Double-click each of the fields in the Employees table to add them to the Field cells.
  5. 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.

  • Save
  • Print
  • Recommend
  • 6

Print/View all Posts Comments on this article

More precisely, you are Utilizing a Calculated Field in a Queryewingdweller  | 05/30/06

What do you think?

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

CIO Sessions

advertisement
Click Here