Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Dcount Syntax

Status
Not open for further replies.

Jagstrom

Technical User
Nov 13, 2008
18
US

=DCount("[Disposition]","History Query","[Disposition]='Wrong Number'")

this works with [Disposition] = Wrong Number

but what about when [Disposition] = "Wrong Nmber"

or simply put how do I compare when Quotes are part of the text value?
 
It should be ok to include the quotes:

=DCount("[Disposition]","History Query","[Disposition]='""Wrong Number""'")

 
=DCount("[Disposition]","History Query","[Disposition]=""Wrong Number""")

produces 0 result
 
Jagstrom,

You did not copy Remou's code correctly.
Look closely and you'll see single quotes as well as double quotes.


Randy
 
my bad, not sure how I done that but,

Your right

Thanks guys
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top