thewrightdesign
Registered User.
- Local time
- Today, 05:35
- Joined
- Sep 30, 2010
- Messages
- 85
Like Brian mentioned -->
You really should be considering using a form for input instead.
In any case, in the following thread, post #14 explains the idea and post #24 contains the actual db. You can always move the DMin() and DMax() functions directly in the query and then use the Is Null code example Brian gave for other non date fields.
http://www.access-programmers.co.uk/forums/showthread.php?t=216127&page=2
Plus, if you want a combination of results, your OR should be AND and you need correct parentheses too.
Thanks I'll look into that as well, and I think after this discussion we've realized a form is what we need as long as I can have the results filter directly into a report.
In my first post I believe I posted the code that works with two criteria and are AND not OR statements. These are several examples (confusing I know) that I've tried. I'm building this query in the design grid, getting the sql code from the sql view after so Access is setting the parentheses in what you see.
I want to change the code of the yes/no criteria so it works as well as the other two are working, returning either passes or fails, or being left empty to return all passes and fails after being filtered by instutition and date range. Ideally, if all input parameter boxes are left blank all records should be returned.