Re: [this field] is less than [another field]
I have qryA and tbl1 that do not have any joins. tb1 only has one field so I don't think there's a problem with that. I'm trying to get the solution to only show results when qryA.[this field] is less than tbl1.[another field]. This is what I put
SELECT qryA.Date, CountOfqryA.Emp,qryA.Hrs
FROM qryA.Hrs
WHERE qryA.Label="Labor"
GROUP BY qryA.Date,qryA.Hrs
HAVING qryA.Hrs>0 and qryA.Hrs<tbl1.PT_Hrs
It's asking me to the Enter Parameter Value for tbl1.PT_Hrs.
I also tried
SELECT qryA.Date, CountOfqryA.Emp,qryA.Hrs
FROM qryA.Hrs
WHERE (qryA.Label="Labor"), qryA.Hrs<tbl1.PT_Hrs
GROUP BY qryA.Date,qryA.Hrs
HAVING qryA.Hrs>0
but that gave me a syntax error.