searching between start and end dates 
Author Message
 searching between start and end dates

Hi I'm writing a cinema booking system and I want to search a films
database that contains all the film information including the starting
and ending dates - what I want is for the user to be able to search for
films starting date and have the films organized by date and I'd like
some kind of a function that would get the date from the system and
display films showing that day - I probably won't be able to do this
with a simple query of the date fields as say a films starts on the 1st
July and runs to the 18th I'd like that film to come up on all days ie
1st 2nd 3rd ...... 17th 18th so how do I


Sat, 12 Jan 2002 03:00:00 GMT  
 searching between start and end dates

Quote:
>a films starts on the 1st
>July and runs to the 18th I'd like that film to come up on all days ie
>1st 2nd 3rd ...... 17th 18th

Investigate the Between...And Operator in your database engine's help files.
It's typically supported and usually appears as such:

SELECT * FROM tblMovies WHERE mov_start BETWEEN #07/01/1999# AND #07/18/99#;

This should return all movies that start within that time period, and, of
course, you could add extra "WHERE" constraints if needed.

-Curtis Spendlove
-Solstice Software



Sat, 12 Jan 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Multiple Dates by choosing Start and End Date

2. Finding the date(s) datapoints between a given start and end date, while excluding weekends

3. start date/time, end date/time problem

4. Outlook calendar via SQL provides no Start/End Date

5. Setting the value of Outlook's START and END date

6. Start and End dates

7. Custom Date - Add Lag to Start Date

8. searching a routine to convert date number in normal format date

9. Start Time / End Time Diff?

10. Forcing Access to wait the end of an application started by SHELL

11. Setting up variables to last from start to end

12. MAPI properties o start and end time of an appointment

 

 
Powered by phpBB® Forum Software