K
kev100 via AccessMonster.com
Duane said:You don't need to create a table in the call center app. Just create a table
in your reporting mdb (or another mdb and attach the table).
Oh....yes...I see what you mean. Those tables will simply be referenced in
order to properly group the working data. That may be possible.
If this isn't possible, you can create a simple function like:
If the Function is all that is possible, should it be entered into the same
area as the SQL code?
The previous items have just been entered into the SQL View section in the
Design mode of a query...and work fine.
Does the function go in the same area....to be executed with the query....or
somewhere more general to be triggered as soon as the MDB is opened?
(starting here definately goes to the SQL view area....just not sure aboutFunction GetColorGroup(pstrColor As String) As String
Select Case pstrColor
Case "Blue", "Light Blue"
GetColorGroup = "Blue"
Case "White", "Ivory", "Off White"
GetColorGroup = "White"
Case Else
GetColorGroup = "Other"
End Select
End Function
the above function)
TRANSFORM Count(Customers.Country) AS CountOfCountry
SELECT Customers.FirstName
FROM Customers
GROUP BY Customers.FirstName
PIVOT GetColorGroup([ItemColor]);
Again...thanks very much for your help.