D
Design by Sue
A client has a poorly designed Access database where they work directly on
the table (no forms) and all info in in the one table (yes there is so much
room for improvement - but that aside) Somehow someone made a copy of the
entire Database and worked on it while the others used the correct file - the
result is 2 columns were updated with information in each database - I need
to create a query to clean this up. First of all there is a continuously
numbering primary key so I have something to work with. The two columns
which need to be merged are a date column and an hours column. For each I
need to compare the date column for the particular key number and use the
most recent date, and in the hours column, use the larger number of hours.
My thoughts are to combine the two tables, giving each two fields for date
and hours, one field each for the information from each database (ie. date
a, date b, and hours a hours b). Then create another 2 fields, perhaps
called date merged, and hours merged. I would then need to create a query
that would do as described, compare the two fields and enter in the merged
field either the more recent date and the larger number.
My question is does this sound like a good way to accomplish this and how
would I write such a query?
I am just trying to get an idea of the time this would take me so I an give
a quote for the work. On the surface this doesn't seem too difficult to me
but I have gotten caught in that trap before!
Any response, especially quickly, will be appreciated!
Sue
the table (no forms) and all info in in the one table (yes there is so much
room for improvement - but that aside) Somehow someone made a copy of the
entire Database and worked on it while the others used the correct file - the
result is 2 columns were updated with information in each database - I need
to create a query to clean this up. First of all there is a continuously
numbering primary key so I have something to work with. The two columns
which need to be merged are a date column and an hours column. For each I
need to compare the date column for the particular key number and use the
most recent date, and in the hours column, use the larger number of hours.
My thoughts are to combine the two tables, giving each two fields for date
and hours, one field each for the information from each database (ie. date
a, date b, and hours a hours b). Then create another 2 fields, perhaps
called date merged, and hours merged. I would then need to create a query
that would do as described, compare the two fields and enter in the merged
field either the more recent date and the larger number.
My question is does this sound like a good way to accomplish this and how
would I write such a query?
I am just trying to get an idea of the time this would take me so I an give
a quote for the work. On the surface this doesn't seem too difficult to me
but I have gotten caught in that trap before!
Any response, especially quickly, will be appreciated!
Sue