ms access expression builder

Posted on 2009-05-17
Last Modified: 2012-05-07
trying to simply count records in a table [tickettable] that have the ticketstatus field set to Resolved

my expression--------------->    =Count([TicketTable]![TicketStatus]=["Resolved"])

but all i get is the lovely ERROR error message

i'm sure it is something simple.....thanks and 200 points to whomever can help me


Open in new window

Question by:rinkydink
  • 2
  • 2
LVL 13

Expert Comment

ID: 24408324
Why dont you use dcount instead.

=Dcount("Ticketsfield","tickettable","ticketstatus=" & resoloved & "")

Where are you going to use this expression? On a report or form or query?

Author Comment

ID: 24408360
i was trying to use it on an unbound text box on a form
LVL 13

Accepted Solution

lucas911 earned 200 total points
ID: 24409033
ok, if you have a resolved textbox or a check box then rename it to something meaningful.

then in your unbound text box  put in the dcount formula:

=Dcount("Ticketsfieldyouwantdisplayed","tickettable","ticketstatus=" & chResoloved & "")

Of course change the names to match your table and fields.  chResolved is a checbox field that is either true or false.

Author Comment

ID: 24409078

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos ( and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now