Results 1 to 3 of 3
  1. #1
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265

    Importing nonprinting characters, then applying functions

    I have an Excel spreadsheet with data copied from the web. After pasting into Excel, there are some non-printing characters. To remove these non-printing characters and replace them with a blank in Excel, I can use this formula =SUBSTITUTE(A1,CHAR(160),"").

    I don't want to keep entering this formula every time I do another copy and paste. I would like to just import the Excel spreadsheet (even though it contains non-printing characters) into a table, and have the table remove the non-printing characters.

    Suppose the column that would receive the non-printing characters in the Access table is called 'ProjectName.' While in table design view, is there a way to enter a formula into the property sheet or somewhere that will automatically execute when the data is imported, so that the non-printing characters are removed?

  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,626
    This cannot be programmed into table. Would have to run UPDATE sql action.

    UPDATE tablename SET fieldname = Replace([fieldname],Chr(160),"");
    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.

  3. #3
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265
    Ok. Thank you.

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

Similar Threads

  1. Replies: 3
    Last Post: 07-28-2014, 06:03 PM
  2. Replies: 4
    Last Post: 04-22-2013, 06:45 AM
  3. Replies: 9
    Last Post: 02-11-2013, 03:09 PM
  4. Replies: 5
    Last Post: 03-10-2011, 02:19 PM
  5. applying a charge routine
    By rbrookes8dec in forum Access
    Replies: 1
    Last Post: 08-08-2010, 11:01 AM

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