J
Jack Leach
Hi,
I have a query that calculates a person's common name through a BuildName
function. This is also the ORDER BY in the sql... I notice that the function
itself is called twice for each record, once for the common name calculation
and another for the order...
"SELECT tblEmployees.fldID, " _
BuildName([fldLastName], _
[fldFirstName],1 _
) AS fldName _
FROM tblEmployees _
ORDER BY BuildName([fldLastName], _
[fldFirstName],1)
Is there no way to order the query by the calculated field without having to
call the function twice? Just a performance concern... I hate to see things
done twice.
Thanks!
--
Jack Leach
www.tristatemachine.com
"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)
I have a query that calculates a person's common name through a BuildName
function. This is also the ORDER BY in the sql... I notice that the function
itself is called twice for each record, once for the common name calculation
and another for the order...
"SELECT tblEmployees.fldID, " _
BuildName([fldLastName], _
[fldFirstName],1 _
) AS fldName _
FROM tblEmployees _
ORDER BY BuildName([fldLastName], _
[fldFirstName],1)
Is there no way to order the query by the calculated field without having to
call the function twice? Just a performance concern... I hate to see things
done twice.
Thanks!
--
Jack Leach
www.tristatemachine.com
"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)