Results 1 to 2 of 2
  1. #1
    randolphoralph is offline Advanced Beginner
    Windows XP Access 2002
    Join Date
    Dec 2008
    Posts
    58

    Convert text to numbers

    I have a .CSV file that I imported into a database and includes 900,000 records. When I import the file I have to import all fields as text otherwise I receive errors importing.



    One of the fields is Days and contains negative and positive numbers. I am needing to convert this field from text to number datatype. I have tried to change the datatype in the table and get a error message stating "Access can not change the datatype there is not enough disk space or memory". I believe this is due to the amount of records I have in the table.

    I need to find another way to change this datatype from text to number. I have tried to do a update query from the field set as a text datatype to a field set as a number datatype and this does not work.

    Can this be done through VBA or SQL? Or maybe some other way?

    Any help would be appreciated.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Have you tried importing your .CSV into a separate .MDB and work on it in there?

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

Similar Threads

  1. Setting a field to only accept text characters, not numbers
    By USAFA2012 in forum Database Design
    Replies: 2
    Last Post: 03-09-2010, 12:37 PM
  2. Replies: 3
    Last Post: 01-15-2010, 02:28 PM
  3. Replies: 9
    Last Post: 11-23-2009, 09:20 PM
  4. Convert to MMM/YYYY
    By Brian62 in forum Queries
    Replies: 10
    Last Post: 08-31-2009, 04:54 PM
  5. Extract numbers from text string strored in a field.
    By khabdullah in forum Programming
    Replies: 2
    Last Post: 12-23-2007, 06:55 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