I'm not sure I understand what you are saying.
I understood you to say that you have 6 fields with the names CUSTOMER ID,
CUSTOMER NAME, OPTION 1, OPTION 2, OPTION 3, and OPTION 4.
Further you wanted to search for a date value existing in any or all of the
fields Option1 to Option4.
If that is the case then you would need to place all four of the opton
fields in the query with the criteria stair-stepped as I have indicated.
If you want a range of dates that are defined when the query is executed you
have to have some method of inputting that range or of getting the range
from some place. How do you (or your users) know what dates to use as a
start date and an end date? If the date range is decided by the user and is
not available from the database, then it must be manually input. Do you or
the users have some specific way they want to input the data - and telepathy
is not an acceptable answer?
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
Bianca said:
Dear John,
I did the second option you gave me and it seemed to work because I was
working with test data where all 4 options fields had data. however when
I
tested it with only one of the option fields filled in it did not work.
the first option you gave me is the one I tried first but the users dont
like filling in start date - end date -.
Is there anything else I can try?
thanx again
B
John Spencer said:
Assuming that you are looking for a match if ANY one of the fields
matches
then
Field: Option 1
Criteria (1): Between [start date] and [end date]
Criteria (2):
Criteria (3):
Criteria (4):
Field: Option 2
Criteria (1):
Criteria (2): Between [start date] and [end date]
Criteria (3):
Criteria (4):
Field: Option 3
Criteria (1):
Criteria (2):
Criteria (3): Between [start date] and [end date]
Criteria (4):
Field: Option 4
Criteria (1):
Criteria (2):
Criteria (3):
Criteria (4): Between [start date] and [end date]
If all four Options have to be between the range then instead of putting
the
criteria on separate rows (in design view) put the criteria all on the
same
row.
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
I want to create a query where:
FIELD 1 CUSTOMER ID
FIELD 2 CUSTOMER NAME
FIELD 3 OPTION 1
FIELD 4 OPTION 2
FIELD 5 OPTION 3
FIELD 6 OPTION 4
The option1-4 is date format - and what I want to do is (if its
possible)
create a query where - Criteria is Between [start date] and [end date]
but
for all four of them at the same time (I dont want to have to do it for
each
field separately).
If anyone can help I would appreciate it - and please note I am new at
this
so please keep the explanation simple if possible.
Thanks