|
-
Nov 8th, 2006, 07:35 AM
#1
Re: First and Last Day Of Month
 Originally Posted by Mark Gambo
Here is another LINK that finds the number of days in a month
I thought they want the formula in the CR not in the VB.
-
Nov 8th, 2006, 10:20 AM
#2
Re: First and Last Day Of Month
 Originally Posted by shakti5385
I thought they want the formula in the CR not in the VB.
Hmmm, maybe so but with the examples I supplied the op should be able to create the CR Formula.
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Nov 8th, 2006, 10:29 AM
#3
Re: First and Last Day Of Month
But here is the CR Formula:
VB Code:
DateAdd("m",1,DateSerial(Year({Table1.dtDate}), Month({Table1.dtDate}),1))-1
@ Shakti - Looks like my code in post #3 except without the Variable.
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Nov 8th, 2006, 10:46 AM
#4
Re: First and Last Day Of Month
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Apr 5th, 2007, 02:28 AM
#5
Re: First and Last Day Of Month
 Originally Posted by Mark Gambo
But here is the CR Formula:
VB Code:
DateAdd("m",1,DateSerial(Year({Table1.dtDate}), Month({Table1.dtDate}),1))-1
@ Shakti - Looks like my code in post #3 except without the Variable.
This is also not giving the result, In CR it dispalying the Date only not the last day of Month.
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
|