M
Marian M.
I am working with 1990 census data in Access 2007 on a 64-bit machine. The
census comes in 34 groups of variables. Each group contains 51 dBase files
(50 states + DC). I am using 8 of the groups. There is a utility that comes
with the data for sticking the 51 files together so that you have one group
dBase file, but it doesn't work on 64-bit machines. Access does not allow you
to string several Append queries into one query script. I have worked out a
mass import of the files in VBA (thanks to help from this Access discussion
group), but now have to stick all the (now) tables in each group together
into a variable-group table.
I have tried searching a couple of lists but am either using the wrong
search terms, or the answer has been there, and I truly do not understand VBA.
If I were appending only one table to another, I would use the SQL:
INSERT into tstf3nn
SELECT stf3nnST.*
FROM stf3nnST;
where nn = 2-digit variable group number
ST = 2-letter State abbreviation
and tstf3nn = base table for the nn group
Can I set up a loop that will call on a list of state abbreviations and a
list of group numbers (or a single list of nnSTs) that cover all the tables
that need appending? If so, how? Should I just stick with appending the files
within one group at a time?
What is the VBA 'method' that will append one table to another?
What search terms should I have been using to find the answer on how to
batch append queries? (Thankfully, the 2000 census data comes in ascii files.
DOS I know how to deal with.)
Thank you in advance,
Marian
census comes in 34 groups of variables. Each group contains 51 dBase files
(50 states + DC). I am using 8 of the groups. There is a utility that comes
with the data for sticking the 51 files together so that you have one group
dBase file, but it doesn't work on 64-bit machines. Access does not allow you
to string several Append queries into one query script. I have worked out a
mass import of the files in VBA (thanks to help from this Access discussion
group), but now have to stick all the (now) tables in each group together
into a variable-group table.
I have tried searching a couple of lists but am either using the wrong
search terms, or the answer has been there, and I truly do not understand VBA.
If I were appending only one table to another, I would use the SQL:
INSERT into tstf3nn
SELECT stf3nnST.*
FROM stf3nnST;
where nn = 2-digit variable group number
ST = 2-letter State abbreviation
and tstf3nn = base table for the nn group
Can I set up a loop that will call on a list of state abbreviations and a
list of group numbers (or a single list of nnSTs) that cover all the tables
that need appending? If so, how? Should I just stick with appending the files
within one group at a time?
What is the VBA 'method' that will append one table to another?
What search terms should I have been using to find the answer on how to
batch append queries? (Thankfully, the 2000 census data comes in ascii files.
DOS I know how to deal with.)
Thank you in advance,
Marian