Solved

ms access expression builder

Posted on 2009-05-17
4
374 Views
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

thanks
=Count([TicketTable]![TicketStatus]=["Resolved"])

Open in new window

0
Comment
Question by:rinkydink
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:lucas911
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?
0
 
LVL 1

Author Comment

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

Accepted Solution

by:
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.
0
 
LVL 1

Author Comment

by:rinkydink
ID: 24409078
thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

743 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

8 Experts available now in Live!

Get 1:1 Help Now