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

    Unhappy Remove Text and Keep Only Numbers

    Hello,



    I have a column in one of my tables called: ErrorMessage. When I import into the Long Text data type column, this is what it looks like:

    EXAMPLES:

    Company not found: 997.
    Company not found: 9004.
    Company not found: 0.
    Vendor not found or inactive or deleted: 24968.
    Branch Code:CLR Invalid. Could not find the Client Code.
    Company not found: 150.

    I would like to have a column with just the numbers, meaning I want to remove all text, all periods and just have the number, how do I do that? Plz Help!

  2. #2
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    https://access-programmers.co.uk/for...ad.php?t=61485

    Use this page. Then run a query on your table calling the function.


    Sent from my iPhone using Tapatalk

  3. #3
    gameemaster is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    23
    Works fantastic! Thank you so much.

  4. #4
    gameemaster is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    23
    Can you help with this? Your advice before was superfluous!

    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!

  5. #5
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    FYI: The appended post above is in its own thread: https://www.accessforums.net/showthread.php?t=65591

  6. #6
    gameemaster is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    23
    Can you assist? It seems pretty simple, i have one table that has number column and one table that has text column, and I need to join the two, what's the best way to do that?

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

Similar Threads

  1. UPDATE QUERY to Separate Numbers from Text in a Text Field
    By pjordan@drcog.org in forum Queries
    Replies: 2
    Last Post: 05-29-2015, 02:44 PM
  2. Replies: 1
    Last Post: 03-27-2014, 06:39 AM
  3. Need to Remove Varying Middle Text
    By EZRider in forum Queries
    Replies: 4
    Last Post: 10-10-2012, 03:45 PM
  4. Replies: 3
    Last Post: 05-29-2012, 04:47 PM
  5. remove unwrap text
    By jamesz in forum Access
    Replies: 11
    Last Post: 03-14-2012, 11:17 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