Actually, no, the child will not be seen in more than one clinic. I'm
developing the database for Project Peanut Butter, a small
humanitarian/medical organization that is working and doing research in
Malawi, Africa. They treat starving children in villages that are far flung;
the families are too poor to own bicycles, much less automobiles. The staff
goes every two weeks to each site and sees the children at the clinic that is
nearest to the child's village.
The researchers had set up a child id convention that consists of two
letters and three digits. My concern is that the data entry person fat
fingers the letters and enters MU instead of MY, for example. (The excel
formulas that they've built to filter data by clinic just use the first two
characters of the child id.) Using the convention they were, it would be
easy for a record to be lost for all intents and purposes by having a typo in
those first two characters. I wanted to break the clinic out to a separate
validatable (is that a word?) field so I could prevent that from happening.
Am I barking up the wrong tree?
It sounds like they have the childID and clinicID concatenated into one field,
and you have separate fields in other tables. You say elsethread:
Thanks for responding. I see that it's late here and I didn't include all
the pertinent information.
In the child table, the clinic and the child id TOGETHER are the key to the
table.
I believe they have data set up so that you can have the following id's
MM100
XX100
ZZ100
Where the same child number can appear with multiple clinic codes. As in
the 100th child at XX clinic. That's why I want to include both fields in
the link.
This isn't "both fields" - this is ONE field containing two logical parts, a
text clinic code and a numeric child code.
You would do better splitting this field in two, making the Primary Key of
your table consist of a text ClinicCode and a numeric ChildID. Neither field
would be unique itself, but the combination would; they could then be
concatenated for display purposes. You could have a table with all the
two-letter clinic codes (and the clinic or location name), and use a Combo Box
to *select* the clinic rather than trusting the user's perfection in typing.
So yes... you're absolutely on the right track. What specific problem are you
having doing so?
btw I read the article in last week's _Nature_ (or was it _Science_??) about
this program; I'm VERY impressed and would be delighted to help if you would
like to contact me offline at jvinson <at> wysard of info <dot> com (edit out
the blanks and fix the punctuation).
I would suggest splitting