R
RWilly
I'd like to convert values to a common unit for a set of records during data
entry. Water use can be reported in gallons or acre-inches, and I want a
robust way to convert acre-inches to gallons without errors. At present, when
a user reports, we create a new reporting year record for that pump, add 12
new records to the (child) Volume table-one for each month of the reporting
year - and convert to gallons as needed by hand. These records are linked to
the reporting year record via a FK.
These are my thoughts on how to do this
create a temp table in an auxiliary mdb
create a recordset of Volume records in the temp table with the correct FK.
Create form on temp table
Have users enter any data needing conversion, which is converted on the form
Insert/update records from temp table to permanent mdb via query in code
Clean up temp table
Is this the easiest/most straightforward way to do this?
I'd appreciate any critiques, ideas, improvements, and suggestions regarding
code. I'm somewhat familiar with simple VBA, mostly from splicing others'
code. TIA
entry. Water use can be reported in gallons or acre-inches, and I want a
robust way to convert acre-inches to gallons without errors. At present, when
a user reports, we create a new reporting year record for that pump, add 12
new records to the (child) Volume table-one for each month of the reporting
year - and convert to gallons as needed by hand. These records are linked to
the reporting year record via a FK.
These are my thoughts on how to do this
create a temp table in an auxiliary mdb
create a recordset of Volume records in the temp table with the correct FK.
Create form on temp table
Have users enter any data needing conversion, which is converted on the form
Insert/update records from temp table to permanent mdb via query in code
Clean up temp table
Is this the easiest/most straightforward way to do this?
I'd appreciate any critiques, ideas, improvements, and suggestions regarding
code. I'm somewhat familiar with simple VBA, mostly from splicing others'
code. TIA