S
Steve
I have a query that runs fine without sorting, but when I try to sort it, it
just runs and runs. It is a query of a subquery. Here is the subquery (named
qryC3NotesNotUsedPt1):
SELECT tblEmployees.LastName, tblEmployees.FirstName, tblEmployees.CMSID,
tblC3Notes.HotKey
FROM tblC3Notes, tblEmployees
ORDER BY tblEmployees.LastName, tblC3Notes.HotKey;
tblEmployees is a linked table
Here is the query that uses the subquery above:
SELECT [qryC3NotesNotUsedPt1].[LastName] & ", " &
[qryC3NotesNotUsedPt1].[FirstName] AS [User Name], qryC3NotesNotUsedPt1.HotKey
FROM tblC3NotesCompleted, qryC3NotesNotUsedPt1
WHERE (((qryC3NotesNotUsedPt1.HotKey) Not In (SELECT C3NoteHotKey FROM
tblC3NotesCompleted WHERE tblC3NotesCompleted.CMSID =
qryC3NotesNotUsedPt1.CMSID AND tblC3NotesCompleted.C3NoteHotKey Is Not
Null)));
Like I said, it runs fine unsorted, but if I try to add an ORDER BY clause
it just runs and runs and never opens. I have waited up to 20 minutes to let
it open and it has not opened. I am trying to sort by
[qryC3NotesNotUsedPt1].[LastName] & ", " & [qryC3NotesNotUsedPt1].[FirstName].
Any suggestions? Thanks for your assistance.
Steve
just runs and runs. It is a query of a subquery. Here is the subquery (named
qryC3NotesNotUsedPt1):
SELECT tblEmployees.LastName, tblEmployees.FirstName, tblEmployees.CMSID,
tblC3Notes.HotKey
FROM tblC3Notes, tblEmployees
ORDER BY tblEmployees.LastName, tblC3Notes.HotKey;
tblEmployees is a linked table
Here is the query that uses the subquery above:
SELECT [qryC3NotesNotUsedPt1].[LastName] & ", " &
[qryC3NotesNotUsedPt1].[FirstName] AS [User Name], qryC3NotesNotUsedPt1.HotKey
FROM tblC3NotesCompleted, qryC3NotesNotUsedPt1
WHERE (((qryC3NotesNotUsedPt1.HotKey) Not In (SELECT C3NoteHotKey FROM
tblC3NotesCompleted WHERE tblC3NotesCompleted.CMSID =
qryC3NotesNotUsedPt1.CMSID AND tblC3NotesCompleted.C3NoteHotKey Is Not
Null)));
Like I said, it runs fine unsorted, but if I try to add an ORDER BY clause
it just runs and runs and never opens. I have waited up to 20 minutes to let
it open and it has not opened. I am trying to sort by
[qryC3NotesNotUsedPt1].[LastName] & ", " & [qryC3NotesNotUsedPt1].[FirstName].
Any suggestions? Thanks for your assistance.
Steve