Re: Total transactions by month
- From: "Rick Brandt" <rickbrandt2@xxxxxxxxxxx>
- Date: Fri, 05 Aug 2005 20:28:05 GMT
FJB wrote:
> I entered the first line as "SELECT Format(Date, "yyyymm") AS YrMnth,
> Count(*) as Qty" (Date is the DateFieldName) and receive an error
> message "The syntax of the subquery in this expression in incorrect".
> I failed to mention I am using Access 2002 (XP) if that makes a
> difference.
"first line"? What I posted you would paste into the SQL view of a new query
and then change the names of the fields and table to match yours.
Also, you should change the name of your field "Date" as that is a reserved word
in Access. As written Access would likely think you meant the function named
"Date" rather than your field named "Date".
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
.
- References:
- Total transactions by month
- From: FJB
- Re: Total transactions by month
- From: Rick Brandt
- Re: Total transactions by month
- From: FJB
- Total transactions by month
- Prev by Date: RE: IIf to return a formula or field
- Next by Date: Re: "Square boxes"
- Previous by thread: Re: Total transactions by month
- Next by thread: query returning oldest record only
- Index(es):
Relevant Pages
|