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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Why you use make table query to add new column.

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

Forum statistics

Threads
1,224,518
Messages
6,179,253
Members
452,900
Latest member
LisaGo

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