Results 1 to 2 of 2
  1. #1
    davedejonge is offline Novice
    Windows 7 Access 2007
    Join Date
    Jan 2010
    Posts
    3

    Copying only part of data from a text field

    Hi, I have a table that has contatct info, one field includes first names of contacts, I want to pull out just the first name from that field.. (eg would be, the field would contain "john and sue" sometimes it might just say "bill") I want to update a new field with the first names.
    I know how to use left(table.field),1,x but, how can I tell it to look for a space rather than a number of characters???

    thanks



    Dave

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Have you looked at the InStr() function yet?

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

Similar Threads

  1. Search any field and part thereof
    By Johan in forum Programming
    Replies: 0
    Last Post: 09-08-2008, 02:18 AM
  2. Search any field and part thereof
    By Johan in forum Forms
    Replies: 0
    Last Post: 09-03-2008, 08:01 AM
  3. Split text field into two text fields
    By Grant in forum Access
    Replies: 6
    Last Post: 01-31-2008, 05:52 AM
  4. copying data from subform to mainform
    By wasim_sono in forum Forms
    Replies: 0
    Last Post: 03-10-2006, 04:35 AM
  5. Replies: 1
    Last Post: 03-02-2006, 06:17 AM

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