Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help building logic for date selection
Message
From
23/03/2005 13:08:01
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00998528
Message ID:
00998538
Views:
22
I'm wanting all the inclusive dates that fall in the range of the dates specified. My first logic (startdate > ?vpstart and enddate < ?vpend) omitted results when either the start or end date fell outside the specified range.

So if a leave started on 01/01/2004 and ended 02/01/2004 I would not get the record if the report was run 01/15/2004 - 01/25/2004. I think I fixed it with the code below.

Thanks for your help!!! You are an incredible asset to the Foxpro community.



>>Sorry about that stupidity. Think I figured it out.
>>
>>
>>select * from leavetable where startdate <= ?vp_end and enddate >= ?vp_start
>>
>>
>>
>>Does that appear correct for getting all dates?
>>
>
>Do you want only records that start and end between specified dates or you want records that start or end between specified dates ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform