I have the following as the data source on a form.
I have a query that has that has two fields logedin from employees and divisionID from division the critera is logedin =1
What I want to do is use the query to filter the data source above to only show records for the divisionID records
So how do I added where divisionID from queryone
Never give up never give in.
There are no short cuts to anything worth doing
Code:
SELECT Assets.AssetID, Assets.AssetDescription, Assets.EmployeeID, Assets.AssetCategoryID, Assets.StatusID, Assets.VendorID, Assets.Make, Assets.Model, Assets.ModelNumber, Assets.SerialNumber, Assets.BarcodeNumber, Assets.DateAcquired, Assets.DateSold, Assets.PurchasePrice, Assets.DepreciationmethodID, Assets.DepreciableLife, Assets.SalvageValue, Assets.CurrentValue, Assets.Comments, Assets.Description, Assets.NextSchedMaint, Employees.DepartmentID, Assets.YesNoID, Assets.[Loaned Out], Assets.DivisionID AS Expr1, Division.DivisionName, Division.DivisionID, Assets.AvailableID, Assets.Updates, Assets.[Printer Driver], Assets.[Printer PEO No], Assets.Audit, Assets.[Port No], Assets.Account, Employees.OfficeLocation, Assets.[Warrenty Expires] FROM Division RIGHT JOIN (Departments RIGHT JOIN (Employees RIGHT JOIN Assets ON Employees.EmployeeID=Assets.EmployeeID) ON Departments.DepartmentID=Employees.DepartmentID) ON Division.DivisionID=Departments.DivisionID ORDER BY Assets.StatusID;
What I want to do is use the query to filter the data source above to only show records for the divisionID records
So how do I added where divisionID from queryone
Never give up never give in.
There are no short cuts to anything worth doing