P
PayeDoc
Hello All
I'm obviously having a bad day query-wise, as this is the 2nd problem I've
needed help on!
What's wrong with this:
SELECT practices.[prac name], practices.[20056 EOY], DMax("[x
confirmed]![entered]","[x confirmed]","[x confirmed]![month name] =""march
2010"" and [x confirmed]![practice] = [prac name]") AS Expr2
FROM practices
WHERE (((practices.[20056 EOY])="6"));
It works fine without the 2nd criteria in the DMax expression (i.e. without
[x confirmed]![practice] = [prac name]). With this criteria I get a message
that access can't find the name 'prac name' ... but why on earth not?? It's
there in the query, and in the table. I tried amending the 2nd criteria to
[x confirmed]![practice] = [practices]![prac name], but with the same
result.
I'm sure this should be simple, but just can't see what's wrong. I'll
probably end up kicking myself when someone points it out - but I will also
be very grateful!
Thanks for any help
Leslie Isaacs
I'm obviously having a bad day query-wise, as this is the 2nd problem I've
needed help on!
What's wrong with this:
SELECT practices.[prac name], practices.[20056 EOY], DMax("[x
confirmed]![entered]","[x confirmed]","[x confirmed]![month name] =""march
2010"" and [x confirmed]![practice] = [prac name]") AS Expr2
FROM practices
WHERE (((practices.[20056 EOY])="6"));
It works fine without the 2nd criteria in the DMax expression (i.e. without
[x confirmed]![practice] = [prac name]). With this criteria I get a message
that access can't find the name 'prac name' ... but why on earth not?? It's
there in the query, and in the table. I tried amending the 2nd criteria to
[x confirmed]![practice] = [practices]![prac name], but with the same
result.
I'm sure this should be simple, but just can't see what's wrong. I'll
probably end up kicking myself when someone points it out - but I will also
be very grateful!
Thanks for any help
Leslie Isaacs