Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querying dates.

Status
Not open for further replies.

Grenage

MIS
Jun 7, 2002
4,378
GB
Greetings.

We have a database which is used to log sick and annual leave. This is basically stored in tables using 'from' and 'to' dates. The main user now wishes to query the data by typing in from/to dates, to generate a sick report.

The problem I am having, is querying the data in a way that will give reliable results. If a person is sick for 2 months, and we run a query on sickness for 3 weeks during the period they are sick, the query would obviously not return this member of staff because their to/from dates were not within the query period.

I'm not fantastic with code, but I can get by. I'm having a real headache working this out, so if anyone has an idea of the best way to go about this, I'd be grateful. I'm not asking anyone to show me code, just a pointer on an efficient route to take.

Russell.

Carlsberg don't run I.T departments, but if they did they'd probably be more fun.
 
Please ignore this thread. The solution turned out to be quite easy, no idea why I didn't see it before!

Carlsberg don't run I.T departments, but if they did they'd probably be more fun.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top