Results 1 to 4 of 4
  1. #1
    dfbrown000@tds.net is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Aug 2016
    Location
    Central Virginia
    Posts
    2

    numeric vs text


    I have established a field for recording hours of work. I want to use only one decimal place (IE 2.5 hours) I created the field as a "long integer" and saved work. It will not let me enter the decimal place. When I enter "2.5" the filed converts it to "2". I can reset the field to "text", but then have to use "Val()" to convert. I know I have done this in the past (20 yrs ago) but can't seem to get it right. What's going on? I'm sure it is something simple, but I'm getting frustrated. Could use some help. Tks db

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Try using Currency, Double or Single as the data type.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    dfbrown000@tds.net is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Aug 2016
    Location
    Central Virginia
    Posts
    2
    Thanks Paul. I'll try that. DIdn't think of currency. Will try double and single as well.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem. Double and Single are floating point numbers, so once in a while will give odd results.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Hide/Replace numeric value with text value
    By gaker10 in forum Reports
    Replies: 2
    Last Post: 03-13-2015, 09:19 AM
  2. Convert text to numeric value
    By Natella in forum Programming
    Replies: 4
    Last Post: 11-11-2013, 02:55 PM
  3. Crosstab results: Numeric vs Text
    By FormerJarHead in forum Queries
    Replies: 1
    Last Post: 05-09-2013, 02:39 PM
  4. Numeric vs. Text
    By Niki in forum Access
    Replies: 4
    Last Post: 06-10-2011, 01:28 AM
  5. Justify numeric text field
    By tpcervelo in forum Queries
    Replies: 2
    Last Post: 01-27-2011, 03:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums