E
Ernie
I know this one because I've been dealing with the same
thing for the past month (taking data from several very
large tables and putting it into many more smaller tables).
Two ways:
1) create a new blank database and give it a name.
2) in your original database create as many queries as you
want to create new tables. In these queries, select just
the columns that you want to export, make sure that you
maintain the same key structure as the original table
(this is also a good time to re-define your keys if you're
feeling adventurous).
3) set the column properties and formats as needed for the
data that you are going to be putting in your new tables.
4) change the query to a "Make table query" and give your
new table a name THEN click the option for "another
database" and type in the path and db name that you
created in #1 above. Click ok. (note that a make table
query will default all your fields to "Text" with no
formatting so you need to set that first (see#3).
4) click run
5) verify that your table was created correctly.
The second method is identical to the first except that
you create your queries in the new db and use File / Get
External Data / Link Tables with your old db.
Note also that running a make table query will erase a
table with the same name so you can only do this once on
each table that you want to keep. Change to append queries
if all you want to do is add data to the new tables.
If you need to filter any of your data, such as not
importing "null" values or selecting only certain values
from the columns you are using, make doubly sure that you
get all the rows that you need in your new table. Updating
later is a pain. (It took me two days to figure out why my
new table was missing 170,000+ rows and another day to
figure out how to get them in there.)
If I'm wrong, may an MVP whip me with a wet noodle.
HTH :>
can I extract the data from tableA and insert it into
tableB?
thing for the past month (taking data from several very
large tables and putting it into many more smaller tables).
Two ways:
1) create a new blank database and give it a name.
2) in your original database create as many queries as you
want to create new tables. In these queries, select just
the columns that you want to export, make sure that you
maintain the same key structure as the original table
(this is also a good time to re-define your keys if you're
feeling adventurous).
3) set the column properties and formats as needed for the
data that you are going to be putting in your new tables.
4) change the query to a "Make table query" and give your
new table a name THEN click the option for "another
database" and type in the path and db name that you
created in #1 above. Click ok. (note that a make table
query will default all your fields to "Text" with no
formatting so you need to set that first (see#3).
4) click run
5) verify that your table was created correctly.
The second method is identical to the first except that
you create your queries in the new db and use File / Get
External Data / Link Tables with your old db.
Note also that running a make table query will erase a
table with the same name so you can only do this once on
each table that you want to keep. Change to append queries
if all you want to do is add data to the new tables.
If you need to filter any of your data, such as not
importing "null" values or selecting only certain values
from the columns you are using, make doubly sure that you
get all the rows that you need in your new table. Updating
later is a pain. (It took me two days to figure out why my
new table was missing 170,000+ rows and another day to
figure out how to get them in there.)
If I'm wrong, may an MVP whip me with a wet noodle.
HTH :>
decrease the number of fields on an original table. How-----Original Message-----
1) I'm re-designing a database and adding more tables to
can I extract the data from tableA and insert it into
tableB?
from another DB into the new DB?2) If I were to start from scratch how can I extract data