|
-
Feb 22nd, 2012, 03:13 AM
#1
Thread Starter
Lively Member
Month of DtPicker
the Dtpicker format to show on the form is custom that is MMMM/yyyy.
now whenever change the value of dtpicker by its "change" function then if it has january and i increase its value to february then it shows february to view but the value it gives will be March in the below syntax:
Mnth = format(dtpicker1.value , "MMMM")
this bug only arise if the day value of january will be 31.
any sugestion.
also wat is the query for taking month and year from a date field of access.
-
Feb 22nd, 2012, 08:05 AM
#2
Re: Month of DtPicker
Trap the error and proceed accordingly; validate Value before formatting...
It basically gets you down to one point: you must handle exceptions.
-
Feb 22nd, 2012, 10:35 AM
#3
Re: Month of DtPicker
Maybe it has nothing to do with January 31st since this occurs every year.
Perhaps it is struggling with the fact that Febuary has 29 days this year.
Maybe jumping from end of January to end of Febuary but then mistaken Feb 29 for Mar 1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|