Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADD COLUMNS to Existing Table

Status
Not open for further replies.

sjck

Technical User
Jan 14, 2004
36
US
I am a novice when it comes to SQL and Access. I am trying to add several Columns to a Table that Exists using ALTER Table. Can I do this in one statement or do I need to use a different ALTER TABLE statement for each column. If this is able to be performed in one statement what is the syntax (I have looked through the books, the forum and can only find examples that add only one column. I cannot find an example to add more than one column)

Right now I have

ALTER TABLE [Repice] ADD COLUMN myID COUNTER(1,1); -- thanks to PHV

I have tried

ALTER TABLE [Repice] ADD COLUMN (myID COUNTER(1,1), column2, column3); but receive errors.


Thank you for you help
 
Why don't you just go into table design and add the columns there?

willybgw
 
I am attempting to automate a very manual process. We receive excel spreadsheets where we have to manuiplate the data based on several criteria. And I wanted to create a query so I can have it run in the macro I have also created.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top