Birthday Reminder

bekio
Member Posts: 204
I have an employee XX YY with birthday 13/04/1980(DD/MM/YYYY), I have created a form, and today date is 25/03/2010. I want that form to display me just records(employe) that have birthday at least 5 days after today date.
Can some one help me about, how to do that.
Thanks.
Can some one help me about, how to do that.
Thanks.
0
Answers
-
-
Either loop through the all records, calculate the birthday and show the correct ones, or create new fields for Day and Month of birthday and filter on these fields.0
-
I have created form, and i want that form to display me all the employees in range of
15 days forward.
e.g. Employee XXX have the birthdate = 13/04/1980 and employee YYY have the birthdate=05/04/1985
Lets say that today date is 25/03/2010.
I want that form to display me those employee XXX and YYY.
Can you help me with function how to filter that form.0 -
Set a filter when you open the form
Look at form 42 for inspirationDon't just take my word for it, test it yourself0 -
I know how to set a filter on open Form but i don't to calculate date.0
-
did you look at this:
http://www.mibuso.com/dlinfo.asp?FileID=1163Little useful function for human resource management.
Helps you not to forget employees' important events. It can be used by HR and management stuff to plan motivation events or birthday parties.0 -
NewDate := CALCDATE(DateExpression [, Date])
NewDate := CALCDATE('5D', TODAY)
then NewDate is 5 days in the future
setfilter("Next Birthday", '%1..%2', TODAY, CALCDATE('14D', TODAY))
Will result in a filter where "Next Birthday" needs to be between today and 14 days.Don't just take my word for it, test it yourself0 -
use temporary record
parse your day and month
check your birthday month and day against the your current day +-5
insert the record to your temp table
populate the form using temp records
hope this helps.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions