G
Guest
I am a pharmacist and am creating a database to help improve inventory
control. To do so, I have started with a table (Drugs by NDC) that has an
autonumber (primary key), the NDC number (a unique code that corresponds to
each individual drug), and the drug's description (name and strength) from
which I pull my inventory information. There are over 3000 entries in this
table.
The inventory project that I am working on will involve tracking drugs that
we run low on. As such, I have created a form that I use to input instances
where this happens that assigns the said event to another table (entitled Qty
Owed Table). This form contains fields for a unique number for the event
(primary key), the date of the event, the NDC# (which actually gives me a
combo box/look-up wizard view of both the NDC# and drug description from my
first table), a supplier (only two options), and the total qty owed.
While this form looks up the NDC# and the drug description, since I assigned
a combo box/look-up wizard for the NDC# field in the first table, I only get
the NDC# displayed in the resulting table. Ideally, I would like to have two
fields in the resulting table...both an NDC# field and a Drug Description
field...where the Drug Description field automatically populates when the
corresponding NDC# is selected in the NDC# field's combo-box. I cannot,
however, figure out how to make this happen. Although the two pieces of
information exists side-by-side in my first table (Drugs by NDC), I cannot
make them correlate automatically in my other table.
Although I realize that the first table (Drugs by NDC) has assigned each of
the drugs a new unique number through the primary key field, seeing both NDC#
and the drug description in my second table would be extremely useful when I
am creating reports and analzying data.
Does anybody know how to make this happen? Do I need to approach this from
a different angle? Any help is appreciated.
Thanks!!
control. To do so, I have started with a table (Drugs by NDC) that has an
autonumber (primary key), the NDC number (a unique code that corresponds to
each individual drug), and the drug's description (name and strength) from
which I pull my inventory information. There are over 3000 entries in this
table.
The inventory project that I am working on will involve tracking drugs that
we run low on. As such, I have created a form that I use to input instances
where this happens that assigns the said event to another table (entitled Qty
Owed Table). This form contains fields for a unique number for the event
(primary key), the date of the event, the NDC# (which actually gives me a
combo box/look-up wizard view of both the NDC# and drug description from my
first table), a supplier (only two options), and the total qty owed.
While this form looks up the NDC# and the drug description, since I assigned
a combo box/look-up wizard for the NDC# field in the first table, I only get
the NDC# displayed in the resulting table. Ideally, I would like to have two
fields in the resulting table...both an NDC# field and a Drug Description
field...where the Drug Description field automatically populates when the
corresponding NDC# is selected in the NDC# field's combo-box. I cannot,
however, figure out how to make this happen. Although the two pieces of
information exists side-by-side in my first table (Drugs by NDC), I cannot
make them correlate automatically in my other table.
Although I realize that the first table (Drugs by NDC) has assigned each of
the drugs a new unique number through the primary key field, seeing both NDC#
and the drug description in my second table would be extremely useful when I
am creating reports and analzying data.
Does anybody know how to make this happen? Do I need to approach this from
a different angle? Any help is appreciated.
Thanks!!