G
Guest
I have two tables - 'Patient' and 'Treatments'.
'Patient' contains the fields Patient_ID, LastName, FirstName, BirthDate,
Gender, and Suburb.
'Treatment' contains the fields Patient_ID, LastName, FirstName, BirthDate,
Gender, Suburb and a number of fields that require the user to enter data.
The tables are linked in a one-to-many relationship.
Data from 'Patient' is contained in the main form and a linked subform
provides the combo boxes etc for user data entry. The forms are currently
linked in this manner -
Link child Field: Patient_ID; LastName; FirstName; BirthDate; Gender; Suburb
Link Master Field: Patient_ID; LastName; FirstName; BirthDate; Gender; Suburb
Subform properties are set so that Allow Edits is 'yes' and Data Entry is
'no'.
At present, all previous entries for each client are able to be viewed in
the subform except where a client has changed the suburb in which they live.
If I remove 'Suburb' from the Link fields then I can see the entries for all
suburbs in which they have lived. However, when I save the record there is a
null entry in the Suburb field in the 'Treatments' table that means a blank
field in a report that is generated using the data in 'Treatments' table.
Why is this happening and what do I need to do so that I can see all entries
for each Patient_ID?
Your help is, as always, greatly appreciated.
Regards,
Joe
'Patient' contains the fields Patient_ID, LastName, FirstName, BirthDate,
Gender, and Suburb.
'Treatment' contains the fields Patient_ID, LastName, FirstName, BirthDate,
Gender, Suburb and a number of fields that require the user to enter data.
The tables are linked in a one-to-many relationship.
Data from 'Patient' is contained in the main form and a linked subform
provides the combo boxes etc for user data entry. The forms are currently
linked in this manner -
Link child Field: Patient_ID; LastName; FirstName; BirthDate; Gender; Suburb
Link Master Field: Patient_ID; LastName; FirstName; BirthDate; Gender; Suburb
Subform properties are set so that Allow Edits is 'yes' and Data Entry is
'no'.
At present, all previous entries for each client are able to be viewed in
the subform except where a client has changed the suburb in which they live.
If I remove 'Suburb' from the Link fields then I can see the entries for all
suburbs in which they have lived. However, when I save the record there is a
null entry in the Suburb field in the 'Treatments' table that means a blank
field in a report that is generated using the data in 'Treatments' table.
Why is this happening and what do I need to do so that I can see all entries
for each Patient_ID?
Your help is, as always, greatly appreciated.
Regards,
Joe