1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Access Query?

Discussion in 'Business Applications' started by gazmysta, Sep 22, 2004.

Thread Status:
Not open for further replies.
  1. gazmysta

    gazmysta Thread Starter

    Joined:
    Nov 6, 2003
    Messages:
    90
    Hi guys,

    I have a column in an access table that contains 3000 records all containing a string of characters. The problem I have is I would like to change just one character from the string in each record. Does anybody know how this might be done?

    Example:

    Column

    X Z Z Z X Z Z X Z

    X X Z Z Z X Z X Z

    Z Z Z X X Z Z X Z

    .....

    .....

    (I would like to run a query that changes the X in each column to a Z)
     
  2. Anne Troy

    Anne Troy

    Joined:
    Feb 14, 1999
    Messages:
    11,746
    First Name:
    Anne
    Create an expression:

    =left(fieldname,7)&"z"&right(fieldname,1)


    That should grab the first 7 characters from the left, put a z, then add the first character from the right.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/276754

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice