Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anniversary/birthday reminders
Message
From
05/04/2005 10:54:09
 
 
To
05/04/2005 10:40:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01001497
Message ID:
01001504
Views:
17
>Hi,
>
>I've gone brain dead :(
>
>I have some SQL code:
>
>
>SELECT dob as dactivity, client_no, PADR("Birthday", 20) as cType;
>	FROM c_clientlist;
>	WHERE DAY(dob) = DAY(DATE()) AND MONTH(dob) = MONTH(DATE())
>
>
>which will give me anybody who was born on the current day.
>
>Say I wanted to allow the user to enter a starting date and an ending date and then I will pull out all people who have birthdays falling within that range.
>
>How do I convert this to work on a range of dates?

Hi Frank,

Have you considered "Date Math" ?

Why not something like

" where BETWEEN(dob,ldDate1,ldDate2) "

HTH,

Ken
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform