Re: Query Based On "yes/no" Switch in Data Base Table
- From: "tina" <nospam@xxxxxxxxxxx>
- Date: Sat, 17 Jun 2006 15:21:37 GMT
so you have seven fields in the table, named "Sunday", "Monday", "Tuesday",
etc - each with a data type of Yes/No? if so, the first thing i'd do is
normalize the table to one field for the day of the week, and store the day
value (as a number 1-7, or as text) in it. if you have a Date/Time field in
the table, and the date values correspond to the days of the week that are
being stored, then you don't need the "day" field at all because you can
extract the day of week from the date value.
hth
"Tom" <Tom@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:173E0343-4E8D-474C-B224-3B79C9DADC4E@xxxxxxxxxxxxxxxx
Tina,Sunday",
Correction. It is a "yes/no" on the "data type" in the table.
On my form, it is a "check box"
Tom
"tina" wrote:
how is the day of the week stored in the *table*? as a text value "
"Monday", etc? or as a date value from which the day of the week can be
extracted? or...?
hth
"Tom" <Tom@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8CA83687-6D6C-483C-A266-1147BFF53F17@xxxxxxxxxxxxxxxx
I have on my Form the following:
Sunday "yes/no"
Monday "yes/no"
Tuesday "yes/no"
Wednesday "yes/no"
Thursday "yes/no"
Friday "yes/no"
Saturday "yes/no"
The "yes/no" is in the form of a "check box"
I'd like to design a query that will list only the
day I choose, if it is "checked".
i.e. If I have 500 records, and only 1 record has
Friday checked, then when I query for Friday, Voila!
How do I do this?
Tom
.
- Follow-Ups:
- References:
- Prev by Date: Re: 2007 VBA event code does nothing
- Next by Date: Re: HELP - Please see Last post on 6/16/06
- Previous by thread: Re: Query Based On "yes/no" Switch in Data Base Table
- Next by thread: Re: Query Based On "yes/no" Switch in Data Base Table
- Index(es):
Relevant Pages
|