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.

Auto insert - Accessdatabase

Discussion in 'Software Development' started by Mayzio, Feb 3, 2003.

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

    Mayzio Thread Starter

    Nov 15, 2002
    I'm using Access 2000 to manage a database.

    My objective is simply :-
    To convert one text format into another - where the program will simply select the first word
    and last word in a name field and insert it into a salutation field on data entry.

    aa bb ccccc - becomes aa ccccc
    Mr J Doe - becomes Mr Doe

    I'm a novice at writing code or using the built-in expressions etc in Access to write a coherent code/expression which works. Can anyone help - perhaps write a code which achieves this?
  2. Rockn


    Jul 29, 2001
    Look up the MID function, I think it will do what you are looking for. Seems your tables are not written very well though. It's usually a good idea to seperate out first and last names into seperate fields in your table for the very reason you are looking at. It also makes indexing and searching records a lot smoother as well.
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!

Similar Threads - Auto insert Accessdatabase
  1. pcloudy
Thread Status:
Not open for further replies.

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

  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