A
Ash
I have an access application in which all the database
tables are of "Linked Access" type. We are migrating
database from Access 2000 to SQLServer2000. So all the
tables are now connected to SQL database thru ODBC-"Linked
ODBC". This causes some of the queries failing. For
example the following query is failing with the error
message --"Group By Expressions must refer to column names
that appear in the select list" -- "TRANSFORM Count
(Events.EventKey) AS [The Value] SELECT
IndividualsNameIndex.IndividualName AS SpeakerName,
Events.EventSpeakerKey, Clients.ClientKey,
Clients.ClientName FROM (Clients INNER JOIN Products ON
Clients.ClientKey = Products.ClientKey) INNER JOIN (Events
INNER JOIN IndividualsNameIndex ON Events.EventSpeakerKey
= IndividualsNameIndex.IndividualKey) ON
Products.ProductKey = Events.EventProductKey WHERE
(((Events.EventSpeakerKey)>0)) GROUP BY
IndividualsNameIndex.IndividualName,
Events.EventSpeakerKey, Clients.ClientKey,
Clients.ClientName PIVOT "NumberOfEvents";".
tables are of "Linked Access" type. We are migrating
database from Access 2000 to SQLServer2000. So all the
tables are now connected to SQL database thru ODBC-"Linked
ODBC". This causes some of the queries failing. For
example the following query is failing with the error
message --"Group By Expressions must refer to column names
that appear in the select list" -- "TRANSFORM Count
(Events.EventKey) AS [The Value] SELECT
IndividualsNameIndex.IndividualName AS SpeakerName,
Events.EventSpeakerKey, Clients.ClientKey,
Clients.ClientName FROM (Clients INNER JOIN Products ON
Clients.ClientKey = Products.ClientKey) INNER JOIN (Events
INNER JOIN IndividualsNameIndex ON Events.EventSpeakerKey
= IndividualsNameIndex.IndividualKey) ON
Products.ProductKey = Events.EventProductKey WHERE
(((Events.EventSpeakerKey)>0)) GROUP BY
IndividualsNameIndex.IndividualName,
Events.EventSpeakerKey, Clients.ClientKey,
Clients.ClientName PIVOT "NumberOfEvents";".