RCheesley
Registered User.
- Local time
- Today, 18:16
- Joined
- Aug 12, 2008
- Messages
- 243
Hi all,
I've got a setup with a Master form:
frmPatientDetails
And a subform:
Specimens
which is tabular, based on a form "frmSpecimenDetails" which runs from a query "qrySpecimenDetails"
On the subform for each specimen there is a button (cmdAddAdmission) which opens the form "frmAdmissions" to allow the user to add an admission related to that particular specimen. There could be several admissions for each specimen.
When the form "frmAdmissions" opens I have used the following control sources to populate the fields of SpecimenID and NHSNumber:
=Forms!frmPatientDetails!Specimens.Form!SpecimenID
=Forms!frmPatientDetails!PatientDetailsNHSNumber
While the fields are being populated perfectly, they are not being entered into the table ("0" is being inserted).
I'm fairly sure this is because it's just pulling the data in from the other form, and hence it's not a real "value" in the box. Any ideas how to resolve this?
Ruth
I've got a setup with a Master form:
frmPatientDetails
And a subform:
Specimens
which is tabular, based on a form "frmSpecimenDetails" which runs from a query "qrySpecimenDetails"
On the subform for each specimen there is a button (cmdAddAdmission) which opens the form "frmAdmissions" to allow the user to add an admission related to that particular specimen. There could be several admissions for each specimen.
When the form "frmAdmissions" opens I have used the following control sources to populate the fields of SpecimenID and NHSNumber:
=Forms!frmPatientDetails!Specimens.Form!SpecimenID
=Forms!frmPatientDetails!PatientDetailsNHSNumber
While the fields are being populated perfectly, they are not being entered into the table ("0" is being inserted).
I'm fairly sure this is because it's just pulling the data in from the other form, and hence it's not a real "value" in the box. Any ideas how to resolve this?
Ruth