I have a subform on a tab control. I want to add a text box that will be unseen by the user when there are records in the subform but visible when there are no records displaying "No Records Found". I want to do this by using Conditional formatting by having formatting blend into the page unless a condition is met then it will change the Fore color to Red. I've used the code:
to determine if the subform recordcount is 0. It works fine when testing in a messagebox but doesn't work in the conditional format expression.
Code:
Forms![frmSubjectInfo]![sbfrmAE].Form.Recordset.RecordCount=0