On CBSSports.com: Get The Preseason NFL Scoop On Your Team

Ease Access database maintenance with the Alter Table command

Tags: Databases, Microsoft Office, Mary Ann Richardson, ALTER TABLE, Employees Table, Microsoft Access, database, Microsoft Office Suite Access Tips Newsletter

  • Save
  • Print
  • 5

Takeaway: When you need to make a number of changes to your Access database, the Alter Table command can help. Learn how you can use the command to quickly add or delete fields in an Access table.

When you need to make a number of quick changes to your database, the Alter Table command can help. You can use the command to quickly add or delete fields in a table.

For example, to add a new Mobile_Phone field to the Employees table, follow these steps:

  1. Open the database containing the Employees table, then click Queries in the objects list in the database window.
  2. Click New, Design View, and OK.
  3. Click Close.
  4. Go to Query | SQL Specific | Data Definition.
  5. Enter the following statement:
    ALTER TABLE Employees ADD COLUMN Mobile_Phone TEXT
  6. Click Run.

You can verify that the field was added by opening the Employees Table in Design View. To delete a field, you would use the following statement:
ALTER TABLE Employees DROP COLUMN Mobile_Phone.

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
  • 5

Print/View all Posts Comments on this article

do it in table designsolson@...  | 03/16/06
You have to be careful with some gui table designersTony Hopkinson  | 03/16/06
do it in table design 2k_groseclose@...  | 03/31/06
ACCESSonalethata@...  | 03/29/06
Autonumber in Accesshcorella82102043@...  | 03/30/06
UseTony Hopkinson  | 03/31/06
Autonumber fieldlyle124@...  | 06/25/08
RE: Ease Access database maintenance with the Alter Table commandwfsaccounting@...  | 08/22/07
RE: Ease Access database maintenance with the Alter Table commandatticus123@...  | 05/22/08

What do you think?

Cracking Open Apple Tech

advertisement
Click Here