Hello. I am trying something new, and (of course) I am stuck!
Here is (among a LOT of other things) what I have:
- A "Vehicles" table that contains (among a LOT of other things) the following:
PK? Field Name Data Type Row Source PK CustomerID Number Department Number SELECT [Department].ID, [Department].Department FROM Department ORDER BY [Department]; AlternateID Short Text
- A "Service" table that contains the following:
PK? Field Name Data Type Row Source PK ServiceID AutoNumber CustomerID Number Date Date/Time
- A "qryMaxPublicSafetyDates" query that looks like this:
The problem is that when I run this query, I get zero results! If I instead remove the "Like Public Safety" criteria option, it runs fine, except with all of the results.
My goal here is to run a query that returns ONLY the results from the "Public Safety" Department, and a second that returns ONLY the results from everyone EXCEPT the "Public Safety" Department.
If you help me to figure out the first one, I know that I can easily accomplish the second.
I'm not sure, but I think that it has something to do with where the criteria "Department" comes from. I mean, the fact that it is a "look up" field in the "Vehicles" table, could be the issue. So I created a named "Vehicles by Dept" that sorts all of the departments out along with the vehicles that belong to them, but that didn't work either.
Any and ALL suggestions would be GREATLY appreciated!
Thx,
DG