angelo0000
Technical User
I have a query which looks at a textbox and does the search based on what is put in the text box. EX: in my database ihave values a, b, c, d. If i type in a in the textbox the query will return all records with a. I would like to be able to type all in the text box and it return all records and not care if it is a, b, c, or d. Here is what I have thus far:
SELECT Stories.Story, Stories.Iteration, Stories.[Story Owner], Actions.Action, Actions.State, Actions.ExpectedResult, Actions.StoryID, Stories.NextJetID, Stories.Project
FROM Stories INNER JOIN Actions ON Stories.StoryID = Actions.StoryID
WHERE (((Stories.Iteration)=[Forms]![Report Form]![AllTestsForIteration].[ListIndex]+"6"
AND ((Stories.Project)=[Forms]![Report Form]![Text79].[Value]));
My problem is that I dont know how to conditionalize this sql query to say if value = 'All'
SELECT Stories.Story, Stories.Iteration, Stories.[Story Owner], Actions.Action, Actions.State, Actions.ExpectedResult, Actions.StoryID, Stories.NextJetID, Stories.Project
FROM Stories INNER JOIN Actions ON Stories.StoryID = Actions.StoryID
WHERE (((Stories.Iteration)=[Forms]![Report Form]![AllTestsForIteration].[ListIndex]+"6"
My problem is that I dont know how to conditionalize this sql query to say if value = 'All'