Re: Count Based on Date
From: Allen Browne (AllenBrowne_at_SeeSig.Invalid)
Date: 04/30/04
- Next message: gene: "Re: Help!! Problem with query"
- Previous message: tina: "Re: Help with code to run query and test a field in the record"
- In reply to: Frolickin: "Re: Count Based on Date"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Apr 2004 10:29:21 +0800
Works just like that.
HowMany is an alias for the field.
You can use any name you like there (other than reserved words).
Access typically uses:
SELECT Count([EventID] AS CountOfEventID
If SQL view is new for you, open any query you have and choose SQL View from
the View menu.
-- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "Frolickin" <frolickin@NOSPAMhotmail.NOSPAMcom> wrote in message news:ugV5n9gLEHA.2396@TK2MSFTNGP12.phx.gbl... > "Allen Browne" <AllenBrowne@SeeSig.Invalid> wrote in message > news:409081ea$0$16600$5a62ac22@freenews.iinet.net.au... > > Try a query like this: > > SELECT Count([EventID] AS HowMany > > FROM [EventTable] > > WHERE [EventDate] < #1/1/2004#; > > > > (You can type something like that into SQL View of a query). > > Thank you for your help. > > I am confused by the AS HowMany syntax. Do I need to define another field > called "HowMany"? Where does that field come from? > > I appreciate the help, > Fro.
- Next message: gene: "Re: Help!! Problem with query"
- Previous message: tina: "Re: Help with code to run query and test a field in the record"
- In reply to: Frolickin: "Re: Count Based on Date"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|