Hi John - sorry i should have put that in my repy;
SELECT tblESGProjectInformation.ESGProjectID,
tblESGProjectInformation.ESGProjectName, [tblStaffDetails]![FName] & " " &
[tblStaffDetails]![LName] AS [Project Manager],
tblESGProjectInformation.Active
FROM (tblESGBranch INNER JOIN tblESGProjectInformation ON
tblESGBranch.ID_ESGBranch = tblESGProjectInformation.ID_ESGBranch) INNER
JOIN
(tblStaffDetails INNER JOIN tblProjectStaffRelationships ON
tblStaffDetails.ID_StaffDetails =
tblProjectStaffRelationships.ID_StaffDetails) ON
tblESGProjectInformation.Id_Projects =
tblProjectStaffRelationships.ID_Projects
ORDER BY tblESGProjectInformation.ESGProjectID;
John W. Vinson said:
Thanks John - I tried this and I get no values in the query regardless
of
wether the check box is ticked or not.
:
On Thu, 5 Mar 2009 14:19:02 -0800, Chris
<
[email protected]>
wrote:
I am trying to create a query based on criterea entered into a Form
(the
criterea are - Financial year, Location and Active) I want the query
to
return Active records only if the checkbox is ticked and all records
if it is
not. Is it possible to set the critera of the query to allow this?
Thanks in advance
Try a criterion on Active of
[Active] = [Forms]![YourFormName]![Active] OR (Not
[Forms]![YourFormName]![Active])
Please post the actual complete SQL of your query, the name of the form
and
the form checkbox, and the name of the table field. Something isn't
matching
up correctly!