hi,
What is wrong with my query?
Please help. I'm going crazy!
I keep getting this error:
"You tried to execute a query that doesn't include the specified expression qryTO.MonthDate = [Forms]![frmM]![cbo_Month] as part of an aggregate function"
Thanks,
Jen
What is wrong with my query?
Please help. I'm going crazy!
I keep getting this error:
"You tried to execute a query that doesn't include the specified expression qryTO.MonthDate = [Forms]![frmM]![cbo_Month] as part of an aggregate function"
Code:
SELECT DateAdd("d",-Weekday([TDate]),[TDate])+1 AS WeekOf, [qryTO].[MonthDate] FROM [qryTO] GROUP BY DateAdd("d",-Weekday([TDate]),[TDate])+1, [qryTO].[MonthDate] HAVING ((([qryTO].[MonthDate])=[Forms]![frmM]![cbo_Month])) ORDER BY [qryTO].[MonthDate];
Thanks,
Jen