Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ms access expression builder

Posted on 2009-05-17
4
Medium Priority
?
385 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:Lucas
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:
Lucas earned 800 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

972 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