Hi Guys,
I'm trying to build a query where the results are a count of our contacts by area code.
Question 1
I want a count of the area code results and show only the area code in my query.
here is my code:
I'll ask question 2 later.
thanks!
I'm trying to build a query where the results are a count of our contacts by area code.
Question 1
I want a count of the area code results and show only the area code in my query.
here is my code:
Code:
SELECT Contacts.City, Contacts.StateOrProvince, Contacts.HomePhone, IIf([homephone],Null,[Mobilephone]) AS AltPhone
FROM Contacts
GROUP BY Contacts.City, Contacts.StateOrProvince, Contacts.HomePhone, IIf([homephone],Null,[Mobilephone])
HAVING (((Contacts.StateOrProvince)="CA"))
ORDER BY IIf([homephone],Null,[Mobilephone]);
I'll ask question 2 later.
thanks!