Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Update in access

    Hello

    I have a table with about 900 rows and i would like to update them all......

    all have a prefix infront of them followed by a _ and i want to remove that
    and all infront of it......

    e.g


    AB_test
    CCC_test2
    XX_test3
    XD_test4
    AB_adff


    should be:

    test
    test2
    test3
    test4
    adff

    there are about 30 different ones so i dont wanna do that manually for each
    one :(

    TIA
    /Lasse


    Lasse Edsvik Guest

  2. Similar Questions and Discussions

    1. Update Access using Flash and ASP
      I am trying to update a client's prices which are to be set equal to another clients existing prices. That is, the client with client_no = 10025 is...
    2. Access Database will not update
      I've got CF7 running on WinXP SP2 with Access 2000 database. Very simple table - 4 fields, all text except the Key. I can view, I can Insert, but...
    3. update access db from flash app
      Ok this is like a two part app. One app to view details about bands gig listings; this part i have working fine. The other app is to allow bands to...
    4. update Access with checkbox
      Hi, strangly enough i can make all sorts of update pages with MM DW but not when a checkbox is involved. The checkbox must update an Access Dbase...
    5. Cannot Add/Update Access db with IIS 5.1
      I got problem to insert or update new record into the Access database. For your information, I run my ASP program on Win XP Professional...
  3. #2

    Default Re: Update in access

    Lasse Edsvik wrote:
    > Hello
    >
    > I have a table with about 900 rows and i would like to update them
    > all......
    >
    > all have a prefix infront of them followed by a _ and i want to
    > remove that and all infront of it......
    >
    > e.g
    >
    >
    > AB_test
    > CCC_test2
    > XX_test3
    > XD_test4
    > AB_adff
    >
    >
    > should be:
    >
    > test
    > test2
    > test3
    > test4
    > adff
    >
    > there are about 30 different ones so i dont wanna do that manually
    > for each one :(
    >
    > TIA
    > /Lasse
    UPDATE tablename
    SET fieldname = Mid(fieldname,Instr(fieldname,"_")+1)

    HTH,
    Bob Barrows

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139