Hello,
I am creating a form in Access that uses the days of the week (I am looking at flight patterns for an airline). I have created a check box for each day; therefore I have 7 total. The checkboxes relate back to a query (that are in the yes "-1" and no "0" format) so that when I check the box for Monday, the query comes back with flights that ONLY operate on Monday ("yes").
This is where my problem lies: what seems to be happening is when I check "Monday" and leave the rest unchecked, they are being recognized as "no" and therefore my query is returning only the results that have the pattern:
Mon: Yes
Tues: No
Wed: No
Thurs: No
Fri: No
Sat: No
Sun: No
Is there a way to make it so that when I check Monday, that it returns ANY data that has yes in Monday regardless of what the other days are? In other words, so it follows a pattern similar to this:
Mon: Yes
Tues: Yes OR No
Wed: Yes OR No
Thurs: Yes OR No
Fri: Yes OR No
Sat: Yes OR No
Sun: Yes OR No
Basically, I want to say if the box if checked then the value is -1 or yes, but if it is unchecked then the value is -1 (yes) OR 0 (no).
I am very new to Access, so I apologize if none of this makes any sense. I appreciate any help anyone can offer. I'm willing to try anything at this point!
JPG4
I am creating a form in Access that uses the days of the week (I am looking at flight patterns for an airline). I have created a check box for each day; therefore I have 7 total. The checkboxes relate back to a query (that are in the yes "-1" and no "0" format) so that when I check the box for Monday, the query comes back with flights that ONLY operate on Monday ("yes").
This is where my problem lies: what seems to be happening is when I check "Monday" and leave the rest unchecked, they are being recognized as "no" and therefore my query is returning only the results that have the pattern:
Mon: Yes
Tues: No
Wed: No
Thurs: No
Fri: No
Sat: No
Sun: No
Is there a way to make it so that when I check Monday, that it returns ANY data that has yes in Monday regardless of what the other days are? In other words, so it follows a pattern similar to this:
Mon: Yes
Tues: Yes OR No
Wed: Yes OR No
Thurs: Yes OR No
Fri: Yes OR No
Sat: Yes OR No
Sun: Yes OR No
Basically, I want to say if the box if checked then the value is -1 or yes, but if it is unchecked then the value is -1 (yes) OR 0 (no).
I am very new to Access, so I apologize if none of this makes any sense. I appreciate any help anyone can offer. I'm willing to try anything at this point!
JPG4
Comment