T
TraciAnn via AccessMonster.com
I use a combo box with a filter query for users to select a record on a form.
As an Ac BE it only took 2 to 3 seconds to load. I upsized it to a SQL BE and
now it takes 3.5 minutes to load.
The Select Statement is:
SELECT dbo_vCTUser.UserName, [dbo_vCTUser].[LastName] & ", " & [FirstName] AS
ContactName
FROM dbo_vCTUser INNER JOIN (dbo_vCTRequest INNER JOIN dbo_vCTRequestUser ON
dbo_vCTRequest.RequestID = dbo_vCTRequestUser.RequestID) ON dbo_vCTUser.
UserName = dbo_vCTRequestUser.UserName
WHERE (((dbo_vCTRequest.ProjectID)=DLookUp("[Project]","[dbo_Filter]")))
GROUP BY dbo_vCTUser.UserName, dbo_vCTUser.LastName, dbo_vCTUser.FirstName
ORDER BY dbo_vCTUser.LastName, dbo_vCTUser.FirstName;
Is there something I can do to speed this up or should I replace the feature
with a Search function?
I've never created a search function so I could use some assistance if that
is the best direction. At the simplest, the search would just have to compare
the unique record ID "UserName", to better meet the needs of the users it
would need to be clever enough to search UserName or a combination of First &
Last names. It would also need to include the WHERE clause used in the select
statement.
Thanks everyone!
As an Ac BE it only took 2 to 3 seconds to load. I upsized it to a SQL BE and
now it takes 3.5 minutes to load.
The Select Statement is:
SELECT dbo_vCTUser.UserName, [dbo_vCTUser].[LastName] & ", " & [FirstName] AS
ContactName
FROM dbo_vCTUser INNER JOIN (dbo_vCTRequest INNER JOIN dbo_vCTRequestUser ON
dbo_vCTRequest.RequestID = dbo_vCTRequestUser.RequestID) ON dbo_vCTUser.
UserName = dbo_vCTRequestUser.UserName
WHERE (((dbo_vCTRequest.ProjectID)=DLookUp("[Project]","[dbo_Filter]")))
GROUP BY dbo_vCTUser.UserName, dbo_vCTUser.LastName, dbo_vCTUser.FirstName
ORDER BY dbo_vCTUser.LastName, dbo_vCTUser.FirstName;
Is there something I can do to speed this up or should I replace the feature
with a Search function?
I've never created a search function so I could use some assistance if that
is the best direction. At the simplest, the search would just have to compare
the unique record ID "UserName", to better meet the needs of the users it
would need to be clever enough to search UserName or a combination of First &
Last names. It would also need to include the WHERE clause used in the select
statement.
Thanks everyone!