Results 1 to 4 of 4
  1. #1
    kevredphysics is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Apr 2014
    Posts
    2

    Need to remove # at the start and end of link address stored on database

    Hi
    I am using asp and database to store info for example link addresses. Unfortunately, they have become stored in database column with a # on either side. I have tried find and replace but this does not work on # symbol. It can not be stored as a hyperlink because I need my website to extract info from remote database and then display info in results page as a hyperlink. Works fine if I remove them by hand but there are 3000 of them!
    [eg #http://accessforums.net#]
    Any ideas?
    Kev

  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,521
    If they are always the first and last characters, this type of thing should work:

    Mid(FieldName, 2, Len(FieldName) - 2)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    kevredphysics is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Apr 2014
    Posts
    2
    Hi
    Where do I stick this programing? In my results page? What does it mean? Why a 2 and a -2?
    Kev

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It would work just about anywhere; in a SELECT or UPDATE query, in code, etc. As to what everything means, have you looked in help at the Mid() function?
    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: 2
    Last Post: 08-22-2013, 12:02 AM
  2. Replies: 4
    Last Post: 01-13-2013, 02:40 AM
  3. Replies: 8
    Last Post: 11-10-2012, 03:03 AM
  4. Access database in stored in temp folder ?
    By Raju Sheth in forum Access
    Replies: 3
    Last Post: 02-05-2011, 02:37 AM
  5. Remove Access ribbon on start
    By azaz in forum Forms
    Replies: 2
    Last Post: 12-30-2010, 03:30 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