PraizesLiberato
Registered User.
- Local time
- Today, 15:42
- Joined
- Dec 6, 2009
- Messages
- 69
Hi Guys,
This is the query
what im trying to do is get all the customers which have exceeded their acccount limit at least twice in a month with a table that only displays the customerid and the date of the excess.
Now Here is what i have done so far.
I made 2 queries
The First Query gathers the
1.Customerid
2.Month/Year as [MnthYrs]
3.Customerid& Month/Year as
This is the query
what im trying to do is get all the customers which have exceeded their acccount limit at least twice in a month with a table that only displays the customerid and the date of the excess.
Now Here is what i have done so far.
I made 2 queries
The First Query gathers the
1.Customerid
2.Month/Year as [MnthYrs]
3.Customerid& Month/Year as
Code:
In my Second Query I have created a query as seen below will give me the number of times the customers has had a axcess in their account in a particular month but i keep getting this error (Picture Attached).
SELECT QueryForExsGettingMonths.Customerid
FROM QueryForExsGettingMonths
GROUP BY QueryForExsGettingMonths.Customerid
HAVING (((Left([QueryForExsGettingMonths].[code],7))=[QueryForExsGettingMonths].[MnthYrs]) AND ((Right([QueryForExsGettingMonths].[code],8))=[QueryForExsGettingMonths].[Customerid]));
really need help on this if you guys can.....plssssss.
Attachments
Last edited: