A
Allen Browne
The Detail section of the form goes completely blank if both:
- there are no record to display, and
- no new records are added.
When this occurs, there are bugs in Access that mess up the display of the
boxes in the Form Header/Footer section also. Details in:
Incorrect display of data
at:
http://allenbrowne.com/bug-06.html
In your case, are the boxes in the form header bound to an expression, such
as:
=[Forms].[MyOtherForm].[StartDate]
Bound expressions will probably disappear when there is no current record,
so it might be better to leave the control unbound and programmatically copy
the value into it. However, this is still likely to suffer from the
"disappearing data" syndrome described in the article above.
The other alternative that might work would be to set the form's
AllowAdditions property to Yes. Assuming the source query is not read-only,
this allows Access to display the new record row, which works around the
problems. You can cancel the form's BeforeInsert event so that no new record
can actually be added.
- there are no record to display, and
- no new records are added.
When this occurs, there are bugs in Access that mess up the display of the
boxes in the Form Header/Footer section also. Details in:
Incorrect display of data
at:
http://allenbrowne.com/bug-06.html
In your case, are the boxes in the form header bound to an expression, such
as:
=[Forms].[MyOtherForm].[StartDate]
Bound expressions will probably disappear when there is no current record,
so it might be better to leave the control unbound and programmatically copy
the value into it. However, this is still likely to suffer from the
"disappearing data" syndrome described in the article above.
The other alternative that might work would be to set the form's
AllowAdditions property to Yes. Assuming the source query is not read-only,
this allows Access to display the new record row, which works around the
problems. You can cancel the form's BeforeInsert event so that no new record
can actually be added.