Computing.Net > Forums > Office Software > Combine tables in Access

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Combine tables in Access

Reply to Message Icon

Name: Daniel Peel
Date: November 26, 2008 at 17:43:28 Pacific
OS: xp
CPU/Ram: n/a
Product: n/a
Comment:

I have 3 tables...
size color and style...

ex.

Size
24
50

Color
red
yellow
green

Style
fork
knife
spoon


What I need to do is..
have one table that has
color style name
ex.

50 red knife
50 red spoon
50 red fork
24 red knife
24 red spoon
24 red fork
etc...

I though it easier to do the three tables and combine somehow.. vs typing out 120 lines.



Sponsored Link
Ads by Google

Response Number 1
Name: jon_k
Date: November 27, 2008 at 06:22:09 Pacific
Reply:

Yes you can

You can use a select statement based on your table
structure to output a file, then load that into a new table.
The following SQL statement will kick out every possible
combination of style, size and colour (use in Query design
view)

SELECT size_table.size, colour_table.colour,
style_table.style FROM size_table, colour_table, style_table

This info can then be loaded into access as a new table
but remember you'll still need a primary key on this new
table.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Combine tables in Access

Combining tables in Access www.computing.net/answers/office/combining-tables-in-access/1387.html

Pivot Table in Access www.computing.net/answers/office/pivot-table-in-access/6385.html

Combine Tables in Access XP www.computing.net/answers/office/combine-tables-in-access-xp/389.html