Jeff Boyce said:
Let's talk about how you can use Access to help you keep track in your
situation...
You mention needing to create records in separate tables for a
newly-registered sump vs. an existing sump. Why? Why do you believe you
need to keep the data in different tables? Are the tables roughly identical
in structure? If so, you are making your job harder and making Access work
harder than either of you need to!
I considered this point as well. It would be nice if I could just keep all
of the data in one place. However, there are two things that are preventing
me from doing that: 1) I inherited the data structure of these tables when I
assumed this position and 2) the table structures are just too different too
incorporate all registration-type data into the existing wells/sumps (for
reference, wells and sumps should be considered the same thing). The
"existing" table is meant to be a simple lookup table with few columns. The
registration table is much more detailed because newly registered sumps need
to meet specific design criteria in order to be built. So for now the the
need is to keep the data separate.
You mention creating a record in one table, and a related record in another
table. Is that the "registered" and "existing" situation again?
Yes, one new record in the form creates two "actual" records--one record in
each of two tables.
You mention an "autonumber Well#". If I recall correctly, you can only use
one Autonumber field per table.
in the "existing" table, the autonumber Well# is analagous to the autonumber
sump# in the registration table. there are two tables, each should be
receiving one new autonumber per record entered into the form.
You have sumps. Some are new, some are existing.
You have ?wells (I clearly don't understand this part of your situation!).
Sumps are (?) related to wells.
Are these reasonable paraphrasings of your situation?
yes. i have sumps/wells (they are the same thing, only called by a
different name in each table).
Although you posted in the .forms newsgroup, you are asking the right
questions -- you have to get your underlying data correct before you can use
it.
Thanks
What is the relationship between new (?registered) and existing sumps?
What is the relationship between sumps (only "existing"?) and wells?
the new "registered" sumps are created to ensure that newly constructed
facilities meet design criteria. Once they a registered, they should also be
added to the "existing" table because for our purposes they exist from this
point forward. The "existing" sumps/wells have already been registered prior
to the enactment of our registration process. thus, there is no need to
re-register them because they have already been constructed. because we
consider a new "registered" sump to be "existing", we need to create a record
for it in each table. So once it is added to each table, and new autonumber
is generated which most certainly will not be the same, since one table had
about 30 records and the other table has nearly 9000 records. that doesn't
matter. all that matters is that i can get a new record in the form to
populate new records in both tables--that way I can return the autonumberID
in order to assign it the "official" ID that will be used over the facilities
lifespan. I know it's rather convoluted, but rather than restructure the
whole system (and nix quite a bit of work that's been put into this effort
thus far) I thought this to be the best approach. I was able to creat a
subform in my main form window that displayed the autonumberID from the
"existing" table, but I was able to actually get the autonumber field to
populate with the next ID number in the sequence. It remains as
"(AutoNumber)" in the field before the field is populated with the next ID
number.
Thanks very much for your guidance. Ruben