andy_dyer
Registered User.
- Local time
- Today, 10:28
- Joined
- Jul 2, 2003
- Messages
- 806
Hiya,
This may be really easy... but I can't do it...
I have a form with a subform embedded - the subform is based on a query that reads the combo box cboOwner and only displays the records that match the entry...
My problem is there are three status of owner - "Operations", "Technology" and "Joint"...
I then have three filters I wish to apply - "Operations", "Technology" and "All"
For Operations Filter all projects with both "Operations" and "Joint" as the owner...
For Technology Filter all projects with both "Technology" and "Joint" as the owner...
For All Filter all projects...
My query thatt runs the subform and looks up the combo is:
SELECT tblProject.ID, tblProject.[Project Name], tblProject.[Project Owner (Project)] AS [Project Owner], tblProject.[% Complete], tblProject.[Amount Invoiced], tblProject.[Project Value (Project)] AS [Project Value], tblProject.[Operations Value (Project)] AS [Operations Value], tblProject.[Technology Value (Project)] AS [Technology Value], tblProject.[Project Status], tblProject.[Client Name], tblProject.[Project Name] AS [P name1]
FROM tblProject
WHERE (((tblProject.[Project Owner (Project)])=[forms]![frmQuery]![cboOwner]) AND ((tblProject.[Project Status])="Open") AND ((tblProject.[Client Name])<>"SEAMS"))
ORDER BY tblProject.[Client Name], tblProject.[Project Name];
But at present I get literally only Operations if I select Operations, Technology if I select Technology and nothing if I select All...
Apologies if this should go in the query part of the forum...
This may be really easy... but I can't do it...
I have a form with a subform embedded - the subform is based on a query that reads the combo box cboOwner and only displays the records that match the entry...
My problem is there are three status of owner - "Operations", "Technology" and "Joint"...
I then have three filters I wish to apply - "Operations", "Technology" and "All"
For Operations Filter all projects with both "Operations" and "Joint" as the owner...
For Technology Filter all projects with both "Technology" and "Joint" as the owner...
For All Filter all projects...
My query thatt runs the subform and looks up the combo is:
SELECT tblProject.ID, tblProject.[Project Name], tblProject.[Project Owner (Project)] AS [Project Owner], tblProject.[% Complete], tblProject.[Amount Invoiced], tblProject.[Project Value (Project)] AS [Project Value], tblProject.[Operations Value (Project)] AS [Operations Value], tblProject.[Technology Value (Project)] AS [Technology Value], tblProject.[Project Status], tblProject.[Client Name], tblProject.[Project Name] AS [P name1]
FROM tblProject
WHERE (((tblProject.[Project Owner (Project)])=[forms]![frmQuery]![cboOwner]) AND ((tblProject.[Project Status])="Open") AND ((tblProject.[Client Name])<>"SEAMS"))
ORDER BY tblProject.[Client Name], tblProject.[Project Name];
But at present I get literally only Operations if I select Operations, Technology if I select Technology and nothing if I select All...
Apologies if this should go in the query part of the forum...