M
Marcus via AccessMonster.com
I have a form used for entering data file definitions (fFile). A file may
contain multiple records. Each record contains multiple fields. The users
wanted the ability to view all records contained within the file and see all
fields for the selected record. In order to do this I would need a continuous
form within a continuous form.
Since Access does not allow this, I created two subforms. The first (sRecord)
contains the descriptive information about the records within the file. The
second (sField) contains descriptive information about the fields within the
record. In order to ensure that the fields displayed on the sField form show
only those associated with the record selected on sRecord, the Record Source
for sField has a where clause referencing the RecordId from sRecord. I also
have an OnCurrent event on sRecord to requery sField (Forms!fFile!sField.
requery) when a different record is selected.
Everything works fine for display and for adding records and fields. I am
having a problem though when the user deletes a record from the sRecord
subform and selects another record on sRecord, the requery no longer
refreshes the data in sField. The only way to refresh the data was to close
and re-open the form. This obviously isn't an acceptable solution.
Is there a solution to this issue?
contain multiple records. Each record contains multiple fields. The users
wanted the ability to view all records contained within the file and see all
fields for the selected record. In order to do this I would need a continuous
form within a continuous form.
Since Access does not allow this, I created two subforms. The first (sRecord)
contains the descriptive information about the records within the file. The
second (sField) contains descriptive information about the fields within the
record. In order to ensure that the fields displayed on the sField form show
only those associated with the record selected on sRecord, the Record Source
for sField has a where clause referencing the RecordId from sRecord. I also
have an OnCurrent event on sRecord to requery sField (Forms!fFile!sField.
requery) when a different record is selected.
Everything works fine for display and for adding records and fields. I am
having a problem though when the user deletes a record from the sRecord
subform and selects another record on sRecord, the requery no longer
refreshes the data in sField. The only way to refresh the data was to close
and re-open the form. This obviously isn't an acceptable solution.
Is there a solution to this issue?