Finding records

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am working im Access 2000, and now have a requirement to create a query
that shows the records for items shown as received in a date range (decided
by user)

I have created the basic query but i am struggling with the following issue.

I have two fields in a table i wish to check, each of the fields represent
one activity. the first activity (MSV) will always be received first followed
by the second (quote) but the time inbetween can and does vary sometimes both
activities will be completed within the same month.

how can i retrieve a record which either activity took place within the date
range inputted by the user?


Thanks
 
Hi

In SQL view you would use a query like...

select *
from <table>
where (MSV between [date1] and [date2])
or (quote between [date1] and [date2])

In Design view...
For the MSV column put the following on the line labelled "Criteria:"

between [date1] and [date2]

and for the quote column, on the line labelled "or:" also put

between [date1] and [date2]

The important part is to put the criteria for MSV and quote on different
lines so they are combined with an OR (else they will be combined with an AND)

hth

Andy Hull
 
Thanks Andy,

that worked a treat.

Andy Hull said:
Hi

In SQL view you would use a query like...

select *
from <table>
where (MSV between [date1] and [date2])
or (quote between [date1] and [date2])

In Design view...
For the MSV column put the following on the line labelled "Criteria:"

between [date1] and [date2]

and for the quote column, on the line labelled "or:" also put

between [date1] and [date2]

The important part is to put the criteria for MSV and quote on different
lines so they are combined with an OR (else they will be combined with an AND)

hth

Andy Hull


Apples76 said:
I am working im Access 2000, and now have a requirement to create a query
that shows the records for items shown as received in a date range (decided
by user)

I have created the basic query but i am struggling with the following issue.

I have two fields in a table i wish to check, each of the fields represent
one activity. the first activity (MSV) will always be received first followed
by the second (quote) but the time inbetween can and does vary sometimes both
activities will be completed within the same month.

how can i retrieve a record which either activity took place within the date
range inputted by the user?


Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top