A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count Results



 
 
Thread Tools Display Modes
  #1  
Old May 8th, 2010, 04:04 PM posted to microsoft.public.access
Daniel[_12_]
external usenet poster
 
Posts: 19
Default Count Results

I have a table with a list of suggestions in it, which users can add to.
When I open the main screen, I have a subform in there linked to the table
for the suggestions and have a text box in the form.

When a user adds a new suggestion, it checks a field called
"activesuggestion", which i have as a yes/no box in the table.

In the text box in the form, I have used the =count to try and return the
number of new records added since last viewing the database

=Count([activesuggestion])

This returns all records in the table, but I would like to limit it to those
which have the activesuggestion box checked. I tried the following, but this
continues to return a "0" figure

=Count([activesuggestion])=true

Any help would be appreciated - sorry if the above doesn't make sense, but
all I want to do is show how many NEW suggestions have been created within a
form.

Thanks in advance

Daniel


  #2  
Old May 8th, 2010, 06:00 PM posted to microsoft.public.access
Ken Snell
external usenet poster
 
Posts: 177
Default Count Results

Try this:

=Abs(Sum([activesuggestion]))

--

Ken Snell
http://www.accessmvp.com/KDSnell/



"Daniel" wrote in message
...
I have a table with a list of suggestions in it, which users can add to.
When I open the main screen, I have a subform in there linked to the table
for the suggestions and have a text box in the form.

When a user adds a new suggestion, it checks a field called
"activesuggestion", which i have as a yes/no box in the table.

In the text box in the form, I have used the =count to try and return the
number of new records added since last viewing the database

=Count([activesuggestion])

This returns all records in the table, but I would like to limit it to
those which have the activesuggestion box checked. I tried the following,
but this continues to return a "0" figure

=Count([activesuggestion])=true

Any help would be appreciated - sorry if the above doesn't make sense, but
all I want to do is show how many NEW suggestions have been created within
a form.

Thanks in advance

Daniel




  #3  
Old May 9th, 2010, 08:00 AM posted to microsoft.public.access
Daniel[_12_]
external usenet poster
 
Posts: 19
Default Count Results

Thanks Ken

Just what I was looking for

Daniel


"Ken Snell" wrote in message
...
Try this:

=Abs(Sum([activesuggestion]))

--

Ken Snell
http://www.accessmvp.com/KDSnell/



"Daniel" wrote in message
...
I have a table with a list of suggestions in it, which users can add to.
When I open the main screen, I have a subform in there linked to the table
for the suggestions and have a text box in the form.

When a user adds a new suggestion, it checks a field called
"activesuggestion", which i have as a yes/no box in the table.

In the text box in the form, I have used the =count to try and return the
number of new records added since last viewing the database

=Count([activesuggestion])

This returns all records in the table, but I would like to limit it to
those which have the activesuggestion box checked. I tried the following,
but this continues to return a "0" figure

=Count([activesuggestion])=true

Any help would be appreciated - sorry if the above doesn't make sense,
but all I want to do is show how many NEW suggestions have been created
within a form.

Thanks in advance

Daniel





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.