Hi,
I am building a database which has a main table that contains patient demographics and then child tables which contains clinic visits. There are many kinds of clinic visits (TB, HIV, CD4, VL) so I didn't use subforms in this case.
I managed to create several buttons on the main demographics form that open a pop-up child form to a new record and linked to that patient.
There are two IDs that I am working with. One is a national ID (NID) and one is an ID we have created internally from my organization (OID). There is always a unique OID for the patient but not all patients have a NID.
When I open the child forms I get a blank NID and OID. I would like in the new record for the NID to be prepopulated with the associated/blank NID in the parent form and then do the same with the OID.
It would be good if the data encoder accidentally clicks the button to the child form, that the pre-populated fields won't keep the record with the remaining fields blank (I get this kind of error when pre-populating fields in Epi Info).
How would I go about coding this?
Thanks,
Awesome!