passing parameters

jakemelon

Board Regular
Joined
Mar 14, 2003
Messages
76
I have table with 3 letter team initials:

Team
--------
ABC
BVM
HAR

there are actually 50 unique teams.

also another table:

Team ID#
ABC 243234
HAR 683456
ABC 64646
HAR 47474
BVM 36436356


How can I make one query which will make 50 tables and each one with data only related to that particular team?

I'd hate to make 50 queries to do this. So the question is how can you pass the Team initial field to tell Access it needs to create a table for each team (and automatically name it with the 3 letter initials).

hope this is not too convoluted!
thanks
 

Some videos you may like

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
55,914
Office Version
  1. 365
Platform
  1. Windows
This seems like it may be unnecessary. You certainly don't want to create 50 tables or 50 queries.

What exactly are you intending to do with this? If you explain it a little bit, we may be able to offer a better alternative.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,384
Messages
5,595,862
Members
414,027
Latest member
zippyfrog

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
Top