C
CanaKiwi
Hi
I'm a newbie to access and I'm struggling with some data and how to update
it.
I have a huge DB that consists of 10 tables, each representing a year of
data and approximately 300,000 records in each year. The tables are not yet
linked in any way but they consist of the same fields from year to year. The
fields are
Code
File#
Name
Address
Details.
For this exercise I'm only really interested in the File# and the Code. The
Code field can either be an "Addition" or a "Deletion" and I'm only really
interested in the "Open" files, ie the ones for which there is an addition
but no deletion.
A file# could be added one year and could be deleted in that same year or it
could be deleted 2 years down the track. Obviously if it is deleted the same
year, then there will be 2 records in the respective annual table with the
same file#. If it is deleted in a subsequent year then I'd consider it
closed and I have no further interest in it.
Here's what I would like to do.
I want to somehow view only the "Open" records. I consider an open record
to be one which was added and was not later deleted.....I do not know how to
do this.
I think I want to select the first file# in the DB that is coded as an
"Addition" then search each and every table for the same file# that is a
"Deletion". If I cannot find a corresponding entry in the same or another
table I want to flag it somehow.
Any help or pointers are greatly appreciated.
TIA
BOZO
I'm a newbie to access and I'm struggling with some data and how to update
it.
I have a huge DB that consists of 10 tables, each representing a year of
data and approximately 300,000 records in each year. The tables are not yet
linked in any way but they consist of the same fields from year to year. The
fields are
Code
File#
Name
Address
Details.
For this exercise I'm only really interested in the File# and the Code. The
Code field can either be an "Addition" or a "Deletion" and I'm only really
interested in the "Open" files, ie the ones for which there is an addition
but no deletion.
A file# could be added one year and could be deleted in that same year or it
could be deleted 2 years down the track. Obviously if it is deleted the same
year, then there will be 2 records in the respective annual table with the
same file#. If it is deleted in a subsequent year then I'd consider it
closed and I have no further interest in it.
Here's what I would like to do.
I want to somehow view only the "Open" records. I consider an open record
to be one which was added and was not later deleted.....I do not know how to
do this.
I think I want to select the first file# in the DB that is coded as an
"Addition" then search each and every table for the same file# that is a
"Deletion". If I cannot find a corresponding entry in the same or another
table I want to flag it somehow.
Any help or pointers are greatly appreciated.
TIA
BOZO