Multiple tables (same format - different data) and one query

passinthru

Board Regular
Joined
Jun 16, 2003
Messages
185
I have a few dozen tables (which currently exist as separate tab delimited ASCII files) which I need to import into Access, then run a query on them. Each table contains data (hours worked, that sort of thing) for a separate project. (The files were exported from an Oracle database. Don't ask why I can't get Oracle to do this - it's all too painful. I work with people who think everything in the world should be done on Excel. A database is just a place to store information until you need to manipulate it in Excel.) :oops:

I've created a query on one of them as a trial run, and it works fine. (It's a very simple query - just totals hours worked by employee grade level.)

How do I create a query that I can run on any of the tables? Pick a table - run the query. I don't want to create the same query for each table.

Bonus points if you can help me automate the import of the flat ASCII tables! :LOL:

OR should I import them as one (I can concatenate the flat files into one) and make the query separate the data by project?

I have ZERO knowledge of VBA in Access. Running 2002 under WinXP Pro.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,221,622
Messages
6,160,887
Members
451,676
Latest member
Assy Bissy

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