In
Gerry H said:
SQL
SELECT tbl_PROJECTS.[Project ID], tbl_PROJECTS.[Project Name],
tbl_PROJECTS.[Start Date], tbl_PROJECTS.[End Date],
tbl_PROJECTS.Client, tbl_PROJECTS.[Road Type], tbl_PROJECTS.[Rural
Urban ID], tbl_PROJECTS.[Location ID], tbl_PROJECTS.[Contract Type],
tbl_PROJECTS.[Const Cost], tbl_PROJECTS.[Project Description]
FROM [tbl_Services Available] INNER JOIN (tbl_PROJECTS INNER JOIN
[tbl_Services Provided] ON tbl_PROJECTS.[Project ID] = [tbl_Services
Provided].[Project ID]) ON [tbl_Services Available].[Services ID] =
[tbl_Services Provided].[RPS Services]
WHERE (((tbl_PROJECTS.[Rural Urban ID]) Like
[Forms]![frm_gerry]![Combo36]) AND ((tbl_PROJECTS.[Location ID]) Like
[Forms]![frm_gerry]![Combo38])) OR ((([Forms]![frm_gerry]![Combo36])
Is Null) AND (([Forms]![frm_gerry]![Combo38]) Is Null));
It seems to me you have the wrong grouping and conjunctions in your
WHERE clause. Try replacing that part of the SQL with this:
WHERE
(
tbl_PROJECTS.[Rural Urban ID] =
[Forms]![frm_gerry]![Combo36]
OR
[Forms]![frm_gerry]![Combo36] Is Null
)
AND
(
tbl_PROJECTS.[Location ID] =
[Forms]![frm_gerry]![Combo38]
OR
[Forms]![frm_gerry]![Combo38] Is Null
);
I've formatted the clause for easier reading and removed extraneous
parentheses, but that won't bother the query designer. I've also
replaced your "Like" operators with "=", since there's no point in using
"Like" if you're not going to use wild-card characters.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)