"
delimiters around field names to [ and ]. For example,
SELECT DISTINCT MCP_Associate_Combobox.ID, MCP_Associate_Combobox.[Assoc
#]
AS Expr1, MCP_Associate_Combobox.[Last Name] AS Expr2,
MCP_Associate_Combobox.[First Name] AS Expr3, MCP_Associate_Combobox.MI,
MCP_Associate_Combobox.[Position Title] AS Expr4,
MCP_Associate_Combobox.[Assoc Grp] AS Expr5
FROM MCP_Associate_Combobox
ORDER BY MCP_Associate_Combobox.[Assoc #],
MCP_Associate_Combobox.[Last Name], MCP_Associate_Combobox.[First Name],
MCP_Associate_Combobox.M;
But I'm wondering why there are all the "ExprN" clauses. And what is
field
"M" (referenced in the Order By)?
--
John Viescas, author
"Microsoft Office Access 2003 Inside Out"
"Running Microsoft Access 2000"
"SQL Queries for Mere Mortals"
http://www.viescas.com/
(Microsoft Access MVP since 1993)
For example here is one of the SQL Passthrough commands.
SELECT DISTINCT MCP_Associate_Combobox.ID, MCP_Associate_Combobox."Assoc
#"
AS Expr1, MCP_Associate_Combobox."Last Name" AS Expr2,
MCP_Associate_Combobox."First Name" AS Expr3, MCP_Associate_Combobox.MI,
MCP_Associate_Combobox."Position Title" AS Expr4,
MCP_Associate_Combobox."Assoc Grp" AS Expr5
FROM MCP_Associate_Combobox
ORDER BY MCP_Associate_Combobox."Assoc #", MCP_Associate_Combobox."Last
Name", MCP_Associate_Combobox."First Name", MCP_Associate_Combobox.M;
Jamie
If the queries were originally written using linked tables, they
should
still work. However, if you were using Passthrough queries directly
to
the
back end, you'll have to rewrite them as regular Access queries.
--
John Viescas, author
"Microsoft Office Access 2003 Inside Out"
"Running Microsoft Access 2000"
"SQL Queries for Mere Mortals"
http://www.viescas.com/
(Microsoft Access MVP since 1993)
http://www.deanforamerica.com/johnviescas
I have a Access97 frontend database and it links tables and queries
to
a
Sybase SQLAnywhere backend database. I have imported all the tables
from
the SQLAnywhere into a Access97 database. I have changed the linked
relationship in the tables section to point to the Access97 backend
now
and
not the Sybase backend. Problem is I have SQL queries written in
the
Access
97 frontend that still try to access Sybase via ODBC. How do I
change
these
queries to access the new Backend.
Jamie
Network Administrator