You're not friends. You'll never be friends. You'll be in love till it kills you both.

Spike ,'Sleeper'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


Sophia Brooks - Apr 03, 2007 4:44:07 am PDT #1126 of 25496
Cats to become a rabbit should gather immediately now here

I have a quick Access question. I have a subform with a field that counts the number of records with =Count(*). What I would like to do is exclude some people from that count, ones who have a 'Yes' in the the field "Cancelled". Is this possible easily? (If it isn't, I don't need anyone to spend a lot of time on it)

THanks


tommyrot - Apr 03, 2007 4:50:56 am PDT #1127 of 25496
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

I have a quick Access question. I have a subform with a field that counts the number of records with =Count(*). What I would like to do is exclude some people from that count, ones who have a 'Yes' in the the field "Cancelled". Is this possible easily? (If it isn't, I don't need anyone to spend a lot of time on it)

Yeah, it's simple. Say the subform has the recordsource "myQuery", then you could use the DCount like this:

=dCount("*","myQuery","Cancelled=Yes")

Assuming Cancelled is a binary field. If it's a text field, put the 'Yes' inside single quotes.

Is that what you wanted?


Sophia Brooks - Apr 03, 2007 4:52:31 am PDT #1128 of 25496
Cats to become a rabbit should gather immediately now here

Thanks! It is exactly what I wanted!


Sophia Brooks - Apr 03, 2007 5:03:11 am PDT #1129 of 25496
Cats to become a rabbit should gather immediately now here

Oh- Except for the record source is (I think) an SQL statement that is SELECT DISTINCT ROW [Studentsandclasses]-- does that make a difference?


tommyrot - Apr 03, 2007 5:04:54 am PDT #1130 of 25496
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

No. Just put the SQL statement inside the quotes where the query/table name would otherwise go.


Sophia Brooks - Apr 03, 2007 5:06:28 am PDT #1131 of 25496
Cats to become a rabbit should gather immediately now here

Thanks!


flea - Apr 03, 2007 5:27:58 am PDT #1132 of 25496
information libertarian

Just as an aside, every time is see "mySQL" my brain goes "My So-Called Life."


Jessica - Apr 03, 2007 9:02:15 am PDT #1133 of 25496
And then Ortus came and said "It's Ortin' time" and they all Orted off into the sunset

Sheep that I am, I just signed up for a Twitter account. Anyone have one of these and actually use it?


amych - Apr 03, 2007 9:08:57 am PDT #1134 of 25496
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

Jess, I do, and then I knew like two people and forgot to ever look at it again.


esse - Apr 03, 2007 9:10:44 am PDT #1135 of 25496
S to the A -- using they/them pronouns!

I've got one but I never bother with it really.