Hello,
I'm trying to return a count of a number of records from a table in a text box on a form...
If you followed that, here's what I'm trying in the text box control source;
I get the error #Name? from this, though.
This works;
although why I need to double bracket it, I've no idea - Access removes the Count keyword if I don't...
What I actually want to do is this;
Where the last [ship] is a combobox on the form...this just returns #Error though...
In a fit of desperation, I tried this:
...but I got #Error for my trouble
Has anybody got any ideas?
I can supply any further info if needed, but I didn't know what people might want...
Thanks,
Paul
I'm trying to return a count of a number of records from a table in a text box on a form...
If you followed that, here's what I'm trying in the text box control source;
Code:
=(SELECT count([crew].[id]) AS [Complement] FROM [crew])
I get the error #Name? from this, though.
This works;
Code:
=count((crew.id))
although why I need to double bracket it, I've no idea - Access removes the Count keyword if I don't...
What I actually want to do is this;
Code:
=Count((SELECT [crew].[id] WHERE [crew].[ship] = [ship].[value]))
Where the last [ship] is a combobox on the form...this just returns #Error though...
In a fit of desperation, I tried this:
Code:
=COUNT((SELECT [crew].[id] FROM [crew] INNER JOIN [ship] ON [crew].[ship] = [ship].[value]))
...but I got #Error for my trouble
Has anybody got any ideas?
I can supply any further info if needed, but I didn't know what people might want...
Thanks,
Paul