I have a main form that shows project information with many subforms on many tabs. I would like to have a text box at the top of the form that shows the [CompanyName] of the one record on the [frmContactSubNew] subform that is also the [Client]. The Client is designated by a check box.
After digging around some of the old posts on DLookups, I have tried to put the following formula in my text box.
=DLookUp("[Company]","frmContactSubNew","[Client] = True")
This gives me the #Error thing in my text box. I can remove the Criteria part and the text box shows the first record in the [frmContactSubNew] subform. The problem must be in my criteria. How do I indicate that I want only the record where the [Client] checkbox is checked?
Thanks!
Margaret
After digging around some of the old posts on DLookups, I have tried to put the following formula in my text box.
=DLookUp("[Company]","frmContactSubNew","[Client] = True")
This gives me the #Error thing in my text box. I can remove the Criteria part and the text box shows the first record in the [frmContactSubNew] subform. The problem must be in my criteria. How do I indicate that I want only the record where the [Client] checkbox is checked?
Thanks!
Margaret