RE: Number Field give wrong result.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You can not use a number field to give you years and months by entering
02.11. Standard numbers a decimal - otherwise known as base 10. Every
number is in powers of 10. Years have 12 months.

Access uses a numerical value to display dates and time. Each hole number
is a day and anything less than a day is a decimal faction. On display
Access converts the number to years, months, days, hours, minutes, and
seconds according to the selected presentation method.

You could use a date-time field to do what you want with a lot of work but
you did not say that the data was to be used in any calculation. So why not
just use a text field with an input mask.

"dbl" wrote:

> Hi I have a form with a field called "LicHeldFor" the data has to be entered
> in Years & Months. This data is used to work out the policy excess but
> gives me the wrong result i.e. 00Yrs 02Mths returns a value of 2. Also 02Yrs
> 00Mts returns the value of 2. (If a driver has held a licence for less that
> a full year then an additional excess is add to the policy)
>
> I need all data under 12 months to give a result of less than 1 i.e. 6
> months 0.06 11 months 0.11 as long as everything under 12 months returns
> less that 1 it will work fine.
>
> When I set up the field to show decimal places i.e. 00.01 it gives the
> following result 0.00 for some reason it only gives full numbers 1 2 3 etc.
>
> Is it possible to do this? if it is how do I go about it.
>
> Thanks for your help
>
> Bob
>
>
>
.



Relevant Pages

  • Re: Assumption of standard
    ... right - by petition and award - to display banners of their own. ... States has no legitimate right to display a standard. ... You yourself display arms which are used ...
    (rec.heraldry)
  • Re: Big Canon Announcement
    ... The HD journey tried to reach a single worldwide standard, however it had to settle on a compromise of mutual compatibility. ... I don't think that an HD display cares what the delivered frame rate is as long as the rate is described in the headers of the data stream. ... As a camera designer (not conventional video, but output to HD screens) I have had the misfortune of having one HD screen be damaged in preparation for a customer demo and have to be replaced by something similar from exactly the same manufacturer. ...
    (rec.photo.digital.slr-systems)
  • Re: Assumption of standard
    ... right - by petition and award - to display banners of their own. ... States has no legitimate right to display a standard. ...
    (rec.heraldry)
  • Re: Screen resolution vs DVD resolution
    ... mapping from say WMV to the video display when a DVD-video is generated. ... second and they use the PAL standard for TV.) ... Also keep in mind that there is a lot more to the tv picture than what you ... a tv doesn't really have a set resolution like a computer ...
    (microsoft.public.powerpoint)
  • Re: SF moment
    ... The 'Sec was the standard size of all such units, ... ALPHA-NUMERIC, 26 of the studs bore the letters of the alphabet, while ... CALENDAR also used the screen for display, ... up through the optical link with any special data required for a ...
    (rec.arts.sf.written)