Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Access Database: Number Display  (Read 5000 times)

0 Members and 1 Guest are viewing this topic.

catz

    Topic Starter


    Rookie
  • I love YaBB 1G - SP1!
    Access Database: Number Display
    « on: June 20, 2008, 03:47:09 PM »
    Good afternoon,

    I'm trying to display a number in a field to only display the number(s) to the left of the decimal point. For example, 10.567 should display as 10;
    5.987 should show 5.

    I've tried all kinds of things using LEFT to no avail.
    Can someone help please?

    Thanks for any assistance.

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: Access Database: Number Display
    « Reply #1 on: June 21, 2008, 05:38:45 AM »
    The question is murky. Any ODBC aware language can process an Access database and we have no idea what language you're using.

    If by chance you're using a member of the VB family (VBA, VBS, VB, VB.NET), check out the fix and int functions.

    Quote
    The difference between Int and Fix is that if number is negative, Int returns the first negative integer less than or equal to number, whereas Fix returns the first negative integer greater than or equal to number. For example, Int converts -8.4 to -9, and Fix converts -8.4 to -8.
    Source: Windows Scripting Technologies

    Good luck.  8)

    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    soybean



      Genius
    • The first soybean ever to learn the computer.
    • Thanked: 469
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 10
    Re: Access Database: Number Display
    « Reply #2 on: June 21, 2008, 06:23:24 AM »
    Good afternoon,

    I'm trying to display a number in a field to only display the number(s) to the left of the decimal point. For example, 10.567 should display as 10;
    5.987 should show 5.

    I've tried all kinds of things using LEFT to no avail.
    What database objects have you created so far?  Only tables?  Queries?  Reports? 

    Formatting numbers for display in a Query is easy.  Have you ever created a Query?