Elana
Registered User.
- Local time
- Yesterday, 21:13
- Joined
- Apr 19, 2000
- Messages
- 232
I need to determine a pro-rata factor using the following code:
Dim intNodays as Integer
Dim Factor As Single
intNoDays = DateDiff("d", Me.CovEffDate, Me.ExpDate)
Factor = intNoDays / 365
My problem is that I need field Factor to be limited to 3 decimal places. I've tried several things, but nothing seems to work. I'm sure I'm missing something EASY.
Any help is much appreciated!
Dim intNodays as Integer
Dim Factor As Single
intNoDays = DateDiff("d", Me.CovEffDate, Me.ExpDate)
Factor = intNoDays / 365
My problem is that I need field Factor to be limited to 3 decimal places. I've tried several things, but nothing seems to work. I'm sure I'm missing something EASY.
Any help is much appreciated!