UNTESTED UNTESTED
Try this --
SELECT dbo_Employee.EEID, [EELast] & ", " & [EEFirst] AS SubroRep,
dbo_Case.CaseID, dbo_Case.CaseClosedDate
FROM dbo_Employee INNER JOIN (dbo_feature INNER JOIN dbo_Case ON
dbo_feature.FeatureAssocClaimNum = dbo_Case.CaseID) ON dbo_Employee.EEID =
dbo_Case.CaseEEID
WHERE dbo_Case.CaseID = (SELECT TOP 15 [XX].CaseID
FROM dbo_Employee INNER JOIN (dbo_feature INNER JOIN dbo_Case AS [XX] ON
dbo_feature.FeatureAssocClaimNum = [XX].CaseID) ON dbo_Employee.EEID =
dbo_Case.CaseEEID WHERE (((dbo_Case.CaseClosedDate)>Date()-30) AND
((dbo_Case.CaseStatus)=6))
ORDER BY Rnd([featureidnumber]));
--
Build a little, test a little.
Nathan said:
SELECT TOP 15 dbo_Employee.EEID, [EELast] & ", " & [EEFirst] AS SubroRep,
dbo_Case.CaseID, dbo_Case.CaseClosedDate
FROM dbo_Employee INNER JOIN (dbo_feature INNER JOIN dbo_Case ON
dbo_feature.FeatureAssocClaimNum = dbo_Case.CaseID) ON dbo_Employee.EEID =
dbo_Case.CaseEEID
WHERE (((dbo_Employee.EEID)=[enter ID of user]) AND
((dbo_Case.CaseClosedDate)>Date()-30) AND ((dbo_Case.CaseStatus)=6))
ORDER BY Rnd([featureidnumber]);
KARL DEWEY said:
Post your query SQL.
--
Build a little, test a little.
:
Running Access 2003 on Vista.
I have a query that chooses 15 records at random. This works fine.
What I want to do is run the same query for approx 110 different users, each
with their own randomly selected 15 records. Obviously, I want to avoid
manually running the same query that many times. How can I get around this?