Results 1 to 2 of 2
  1. #1
    catluvr is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Mar 2018
    Location
    Kansas
    Posts
    87

    Numbers stored as text still being treated as numbers -- It's crazy & also, why?

    Hello All,

    Still helping my daughter work out bugs in her database.

    She has done something that I TOLD her NOT to do ... she used calculated fields in her main data table. I have not disowned her yet!

    Her database is too far along for her to go back and change things.

    Anyway, she accidentally made a text field to store numbers. I know it's text, it acts like text when being sorted, and i can add alpha characters to the field with no issues but ... the craziest thing is that she uses this field in her numeric calculations and it works (not if there are alpha characters in it)! She didn't know it was a text field ... I think she forgot the field type when she started entering data.

    A. How can this actually happen?



    B. the numbers use decimals to four to the right of the decimal point. Is there any way to convert this field to be a real number?


    Susie
    Kansas

  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,529
    Try changing the data type to Currency. That should work if there are no alpha characters in the data. Access will sometimes make implicit conversions on text data, but not always. Sometimes 2 + 2 = 22 (+ can act as a concatenation operator).
    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. Replies: 4
    Last Post: 09-29-2020, 10:16 AM
  2. Decimal Numbers stored in a table are not accurate.
    By MatthewGrace in forum Access
    Replies: 4
    Last Post: 05-15-2020, 04:07 PM
  3. Replies: 2
    Last Post: 08-30-2017, 07:11 AM
  4. Replies: 8
    Last Post: 03-10-2014, 11:47 AM
  5. Replies: 1
    Last Post: 11-29-2011, 08:43 AM

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