G
Gary Schuldt
I have a running database to which I want to add some new functionality, and
I can't figure out the best way to do it.
It's a (botanical) plant database. A Plant's "name" is a compound field
that starts with its GenusName followed by a variable number of sub-generic
qualifiers (subgenus, species, etc.). These fields are in the tblPlant
table, which is updated via frmPlant.
Every Plant must have at least a Genus component to its name, and many
Plants can belong to the same Genus.
I want to add a tblGenus (containing GenusName plus other stuff) so I can
record information at the Genus level. The relationship between tblGenus
and tblPlant is one-to-many. I know how to construct that much.
This is what I need help with: When I add a new record to tblPlant, I want
to automatically create a new record in tblGenus if the tblPlant.GenusName
is a new one (i.e., doesn't already exist). I want this done behind the
scenes with no confirmation popup.
I'm not sure if there is some way to get Access to do that automatically, or
if I have to write some code for it, and, if the latter, what event to trap.
Gary
I can't figure out the best way to do it.
It's a (botanical) plant database. A Plant's "name" is a compound field
that starts with its GenusName followed by a variable number of sub-generic
qualifiers (subgenus, species, etc.). These fields are in the tblPlant
table, which is updated via frmPlant.
Every Plant must have at least a Genus component to its name, and many
Plants can belong to the same Genus.
I want to add a tblGenus (containing GenusName plus other stuff) so I can
record information at the Genus level. The relationship between tblGenus
and tblPlant is one-to-many. I know how to construct that much.
This is what I need help with: When I add a new record to tblPlant, I want
to automatically create a new record in tblGenus if the tblPlant.GenusName
is a new one (i.e., doesn't already exist). I want this done behind the
scenes with no confirmation popup.
I'm not sure if there is some way to get Access to do that automatically, or
if I have to write some code for it, and, if the latter, what event to trap.
Gary