Concatenate the values into the 3rd string:
=DCount("*", "This Table", "([Field] = 'This String') And ([Start Date] > "
& Format([CboStartDate], "\#mm/dd/yyyy\#") & ")")
It is important to use the US date format in the string. For more info on
that, see:
International Date Formats in Access
at:
http://allenbrowne.com/ser-36.html

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> Hello
> I am trying to use Dcount in a text box on an unbound form to count the
[quoted text clipped - 14 lines]
> work. Can anybody tell me if this is possible and if so how to do it?
> Thanks in anticipation.
Phil - 11 Nov 2006 11:33 GMT
> Concatenate the values into the 3rd string:
>
[quoted text clipped - 5 lines]
> at:
> http://allenbrowne.com/ser-36.html
Thanks very much for the quick response, I was eager to try it out! I
now get a dialog box pop up telling me this: 'Extra ) in query
expression ([Field] = 'This String') And ([Start Date] > " Any ideas???
Thanks again
--
Douglas J. Steele - 11 Nov 2006 12:09 GMT
>> Concatenate the values into the 3rd string:
>>
[quoted text clipped - 9 lines]
> now get a dialog box pop up telling me this: 'Extra ) in query
> expression ([Field] = 'This String') And ([Start Date] > " Any ideas???
You sure you typed exactly what Allen had? His parentheses appear to be
correct.
Copy-and-paste exactly what you've got.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
Phil - 11 Nov 2006 13:24 GMT
> > > Concatenate the values into the 3rd string:
> > >
[quoted text clipped - 15 lines]
>
> Copy-and-paste exactly what you've got.
Ok I did that - discovered the problem was with the Combobox in that it
did not have a value in it when I pasted the expression into the record
source. Thanks very much for the help.
--