A
Alisa Bull
Has anyone used DCount successfully?
I have a form (Children2) that displays the names and birthdates of children
for a given customer. The Children2 form uses the following to get the
associated children:
(SELECT Children.* FROM Customers INNER JOIN Children ON
Customers.CustomerID = Children.CustomerID WHERE
(((Children.CustomerID)=[forms]![Orders by Customer]![CustomerID]));
On the main form I'm using a text box meant to display the number of
children (or children records) for a given customer. The control source for
the text box has the following:
=DCount("*","Children","CustomerID = " & [Me]![cboCustomerID])
The child records are stored in a table called Children.
Instead of counting the associated child records, I'm getting #Name?. Can
anyone shed any light on what's wrong? I'd be happy to supply more info if
need be. Thanks in advance for any help.
I have a form (Children2) that displays the names and birthdates of children
for a given customer. The Children2 form uses the following to get the
associated children:
(SELECT Children.* FROM Customers INNER JOIN Children ON
Customers.CustomerID = Children.CustomerID WHERE
(((Children.CustomerID)=[forms]![Orders by Customer]![CustomerID]));
On the main form I'm using a text box meant to display the number of
children (or children records) for a given customer. The control source for
the text box has the following:
=DCount("*","Children","CustomerID = " & [Me]![cboCustomerID])
The child records are stored in a table called Children.
Instead of counting the associated child records, I'm getting #Name?. Can
anyone shed any light on what's wrong? I'd be happy to supply more info if
need be. Thanks in advance for any help.