ARampton
asked on
Creating Access Query with Criteria data from first row of another query
I wish to create a query which findsall dates greater than the one defined in the first row of another unique query
I have done this with the criteria date showing in a live form but don't know how to bypass the form to go to the first date shown inquery directly
IE something like
SELECT [Q-ProjectTime].HoursDate, [Q-Project Time].Hour s
FROM [Q-ProjectTime]
WHERE ((([Q-ProjectTime].HoursDa te)>"[Q-Pr ocessPerio ds].[Start Date](firs t row only)"));
Any suggestions?
I have done this with the criteria date showing in a live form but don't know how to bypass the form to go to the first date shown inquery directly
IE something like
SELECT [Q-ProjectTime].HoursDate,
FROM [Q-ProjectTime]
WHERE ((([Q-ProjectTime].HoursDa
Any suggestions?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:-0
Try this: pk is the primary key field of the table.
SELECT [Q-ProjectTime].HoursDate, [Q-Project Time].Hour s
FROM [Q-ProjectTime]
WHERE ([Q-ProjectTime].HoursDate >(Select Max([Q-ProcessPeriods].[St artDate]) from [Q-ProcessPeriods] WHERE pk =(select min(pk) from [Q-ProcessPeriods]))
SELECT [Q-ProjectTime].HoursDate,
FROM [Q-ProjectTime]
WHERE ([Q-ProjectTime].HoursDate