home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Access Count function?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2390
Discussions: 200,959, Posts: 2,379,543, Members: 246,329
Old January 9th, 2003, 12:01 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Nov 2001
Posts: 177
Access Count function?

Figured it out, this can be deleted.

Last edited by Turnip12 : January 9th, 2003 at 01:49 PM.
Turnip12 is offline   Reply With Quote
Old January 9th, 2003, 01:55 PM     #2 (permalink)
Thaumaturge Member
 
howste's Avatar
 
Join Date: Oct 2001
Location: West Haven, Utah
Posts: 15,325
I don't think you can do it in a query, but I think you can in a form or a report. If I remember correctly you can do summaries of data and have Access calculate totals.

With a query, I think about all you can do is filter out the records without the box checked. You can then see how many records are displayed, which would give you the count. If you're automating this with VBA, I think you could do the query and do some kind of record count function. Unfortunately I don't have time today to play with it.
howste is online now   Reply With Quote
Old January 9th, 2003, 01:57 PM     #3 (permalink)
Thaumaturge Member
 
howste's Avatar
 
Join Date: Oct 2001
Location: West Haven, Utah
Posts: 15,325
Doh! Ok, how did you do it?
howste is online now   Reply With Quote
Old January 9th, 2003, 03:31 PM     #4 (permalink)
Member
 
Join Date: Nov 2001
Posts: 177
I switched my table data types over to number from yes/no and it started displaying a value of -1 or 0 instead of yes or no, then I used the sum function in my expressions in my query to total up the value and used abs to switch it to a positive number. So not exactly what I was looking for, but it came out with the same result.
Turnip12 is offline   Reply With Quote
Old January 9th, 2003, 03:38 PM     #5 (permalink)
Thaumaturge Member
 
howste's Avatar
 
Join Date: Oct 2001
Location: West Haven, Utah
Posts: 15,325
Sounds like a good solution. I couldn't get it to sum up the True/False either even though it stores it as -1 and 0.
howste is online now   Reply With Quote
Old January 9th, 2003, 10:13 PM     #6 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,391
Please don't delete the initial post, now we don't know what the initial problem is. If somebody in the future has a similar problem they can't use your thread to help them.

Unfortunately I don't think you can COUNT in sql server either because that requires a GROUP BY statement, and you can't group by a bit column
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2974)
The disrespect of Obama by Russian .. (44)
Making Health Care Worse (180)
Wireless Televisions. (12)
CPU fan stops spinning randomly (9)
Regular Build (11)
windows 7 problem (7)
Laptop with wireless problem. (5)
windows vista security holes (13)
Is the PSU I received dead? (13)
Print spooler problem (16)
radeon x850xt platinum & shader.. (6)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
Recent Discussions
Is the PSU I received dead? (13)
Print spooler problem (16)
Nvidia GTX 260 problem (0)
windows vista security holes (13)
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
Open With ..... Win7 (1)
webcam (0)
upgrade for hp a6101 (0)
Laptop with wireless problem. (5)
Modern Warfare 2: Who Bought It? (64)
tv not turn on-makes clicking sound (2)
CPU fan stops spinning randomly (9)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Virus advise (8)
My monitor won't turn on after instal.. (1)
Internet Lost (3)
Dept. of HS: NSA 'Helped' Develop Vis.. (16)
Point and Shoot Camera Suggestions. (4)
Ideal cheap graph card for PC-Gaming? (18)
radeon x850xt platinum & shader 3 (6)
Graphics Card Upgrade Question (4)
For Sale BFG GTX285 OC2 with 10 year .. (3)


All times are GMT -4. The time now is 10:47 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28