Results 1 to 2 of 2
  1. #1
    gameemaster is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    23

    Converting Text To Columns

    I have two tables. I import one (1) table that has a column as a Number (Column 1), and it stays a number. I have another table, that I import a column as Text (Column 2), that's because it has characters attached to it like 144147R or 134991A.



    I am able to remove alphas on the text column import to remove the letters. Now I am trying to run an inner join and a left join on those two columns. I have used the Fortmat(), Val(), Int(), CDbl() functions, trying to convert the removed alphas text column (Column 2), which would technically be Column 3, since I had to use a module to remove the alphas.

    I've tried all those functions to convert a text column to a number after I have removed alphas, removing alphas requires me to create a 3rd column (Column 3), so I want to inner join and left-join column 1 and column 3, but I cannot get column 3 formatted as a number!

    Please Help!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Column 3 is a number type field in table? You have populated it with modified value? This works fine for me. Value is saved to number type field and therefore is a number.

    Also no problem using Val() function to convert value in query and then joining the query to table.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Converting text to 2 decimal places
    By lwilt in forum Access
    Replies: 1
    Last Post: 09-13-2013, 09:58 AM
  2. Replies: 12
    Last Post: 07-31-2013, 01:29 PM
  3. Help!! Converting memo to text in access
    By sandeebee123 in forum Access
    Replies: 1
    Last Post: 07-31-2013, 12:36 PM
  4. Converting a Code to Text
    By rmcafee in forum Programming
    Replies: 7
    Last Post: 09-13-2011, 08:52 PM
  5. Converting Option value to text
    By James3mc in forum Forms
    Replies: 4
    Last Post: 11-28-2009, 11:19 PM

Tags for this Thread

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