I have a main form (based on a query) with a subform that shows information for a one to many relationship. On the main form I would like to add the number (count) of related records.
I can change the query to show totals (this involves adding a table and using 'count' on the field of interest) but that makes it so that I cannot add new records. I have tried to make a second query and add a text box that points to this query; this gives me a 'Name?' error in the text box. I have also tried various SQL statments in the control source but everything I have tried gives the 'Name?' error (which is understandable since I know very little SQL).
I'm using Access 2000.
I can change the query to show totals (this involves adding a table and using 'count' on the field of interest) but that makes it so that I cannot add new records. I have tried to make a second query and add a text box that points to this query; this gives me a 'Name?' error in the text box. I have also tried various SQL statments in the control source but everything I have tried gives the 'Name?' error (which is understandable since I know very little SQL).
I'm using Access 2000.