Add Columns Via Query

jbfrank

Active Member
Joined
Oct 13, 2003
Messages
290
I have not posted yet to the Access Message Board. I'm also relatively new to Access, so I apologize if I don't word this correctly. I will do my best to explain what I'm looking for.

I need to add columns to an existing table via a Query.

For example, I have a table in Access that's created from a couple of different sources. First I import data from Excel and then use Access to format it and create combinations. The table is a zip code table that shows the distance in miles from one zip code to another.

Once that table is created, I need to add columns (with no data in them). Once those columns are created, I can establish relationships between this new table and other existing tables.

What I'm ultimately trying to do is automate the creation of a very large table. Adding columns via a query is my only hurdle at this point.

Any advice would be appreciated. Thank you.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Why you use make table query to add new column.

SELECT *, "" AS NewCol
FROM table1;
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,266
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top