you're making a common newbie mistake, Hal - thinking "spreadsheet"(also
referred to as "flat file"), instead of "relational database". most folks do
this when they start out, especially if they've used Excel for *anything*!
in order to use Access successfully and leverage its' full (and
considerable) power, you need to normalize your data, and build your
tables/relationships appropriately. learning to do this, and then doing it,
takes a certain investment of time, which you will more than recoup as you
continue building the rest of your database on correctly structured
tables/relationships. (not to mention the many tension headaches, gray
hairs, ulcers, etc, that you'll avoid! <g>)
recommend you go to
http://www.ltcomputerdesigns.com/JCReferences.html
for many, many valuable links to resources on all aspects of database
design.
begin with the "Starting Out" and "Database Design 101" links.
to help you relate what you read to your situation, here are a minimum of
three tables you'll need:
tblDrugs
DrugID (primary key)
DrugName
(other fields that describe a *drug*)
tblClients
ClientID (pk)
FirstName
LastName
(other fields that describe a *client*)
tblClientDrugs
ClientDrugID (pk)
ClientID (foreign key from tblClients)
DrugID (fk from tblDrugs)
(note: you can use a separate pk field, as above. or you can leave out that
field, and use the two foreign key fields as a combination pk.)
if one client has 3 drugs, then you'll enter three records for that client -
one for each drug. if a client has 1 drug - one record. and so on.
one of the many advantages of relational design is that it is infinitely
expandable: one client may have 1 drug, or 10 drugs, or 100 drugs, or no
drugs. it doesn't matter, doesn't affect the structure of the tables, or
queries, forms, etc. by comparison, using a "flat file" design is only
expandable with extreme effort: if you create a table with 6 drug fields,
then your queries, forms, reports, etc are all structured to manipulate and
display 6 drug fields (with some difficulty, as you've already experienced).
to accomodate a client with 7 drug fields, you have to begin by adding
another field to the table - and then continue by modifying every other
object connected to that table, which constitutes a major rewrite.
hth