A
AccessIM
Hello All-
I have the following query:
SELECT qryReceivingDateRange.ItemCode,
Min(qryReceivingDateRange.LeadTimeEndDate) AS FirstLeadTimeEndDate
FROM qryReceivingDateRange
GROUP BY qryReceivingDateRange.ItemCode
ORDER BY qryReceivingDateRange.ItemCode,
Min(qryReceivingDateRange.LeadTimeEndDate);
The query will work at some times but not at others.
For example, if I choose a date range of one month, th query runs fine and
returns the minimum date in the LeadTimeEndDate field (LeadTimeEndDate is a
calculated field). However, if I go out to a date range of six weeks, I
receive the error message that my query is too complex.
However...again, if I use the same six week period and enter one item code
as criteria, it will work pulling up only that item code and returning the
minimum date in the LeadTimeEndDate field.
Can anyone shed some light on to this error message for me and maybe why it
works sometimes but not others?
Thank you so much.
I have the following query:
SELECT qryReceivingDateRange.ItemCode,
Min(qryReceivingDateRange.LeadTimeEndDate) AS FirstLeadTimeEndDate
FROM qryReceivingDateRange
GROUP BY qryReceivingDateRange.ItemCode
ORDER BY qryReceivingDateRange.ItemCode,
Min(qryReceivingDateRange.LeadTimeEndDate);
The query will work at some times but not at others.
For example, if I choose a date range of one month, th query runs fine and
returns the minimum date in the LeadTimeEndDate field (LeadTimeEndDate is a
calculated field). However, if I go out to a date range of six weeks, I
receive the error message that my query is too complex.
However...again, if I use the same six week period and enter one item code
as criteria, it will work pulling up only that item code and returning the
minimum date in the LeadTimeEndDate field.
Can anyone shed some light on to this error message for me and maybe why it
works sometimes but not others?
Thank you so much.