Results 1 to 8 of 8
  1. #1
    LtPitt is offline Novice
    Windows 7 Access 2007
    Join Date
    Mar 2010
    Posts
    3

    Inserting surname automatically compile name field

    Hello everybody: I've just registered



    I'm trying to understand what access is about and how it can be useful in my professional and personal life...

    I'm trying to find out how to do easy input masks.

    One of the main point would be to insert a surname (I've found the option to auto-complete while writing: cool) and automatically get a name for it.

    I try to explain better: I have two separate fields.
    Name
    Surname

    When I insert Newton I'd like Access to choose directly Isaac.

    I hope I made myself clear O_O

    Even just a suggestion about what chapter of the help I have to read would be sweet!

    Thanks to everybody

  2. #2
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164
    How in the world, with everything and anything logical, is the program supposed to ascertain that you want "Isaac" to be associated with Newton and not "Bob" or "Fig"

  3. #3
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    This could be way off the mark but what the heck!

    Create a table with 3 fields
    1. NameRef - 6 characters text (Index and unique) e.g. NEWTOI
    2. Surname - 30 characters text e.g. Newton
    3. FirstName - 30 characters text e.g. Issac

    Create a form with a combobox that shows the surname. Add a textbox who's controlsource targets the combox firstname column.

    Everytime you choose a surname from the drop-down the textbox will get filled with the firstname

  4. #4
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164
    Yes, but how will it know what the first name is? Where is the first name coming from?

  5. #5
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    You tell it.

  6. #6
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164
    sure sounded to me like he wanted the field [FirstName] in the table to be automatically populated

  7. #7
    LtPitt is offline Novice
    Windows 7 Access 2007
    Join Date
    Mar 2010
    Posts
    3
    MH good point O_O

    I'm novice, that's it.

    I thought that storing names and surnames separately could be useful for any kind of future use...
    So, to help people inserting fast data I thought about insert just the 1st letter of the right surname "N" and get an autocompilation for NEWTON ISAAC.
    Then, if wrong, this could be manually changed...

    Maybe I'm wrong?

  8. #8
    LtPitt is offline Novice
    Windows 7 Access 2007
    Join Date
    Mar 2010
    Posts
    3
    I just had to do a dlookup...

    Thanks to everybody anyway

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

Similar Threads

  1. Replies: 1
    Last Post: 01-30-2010, 04:45 PM
  2. Replies: 1
    Last Post: 01-26-2010, 10:36 PM
  3. Automatically Reduce Field Size
    By Rebecca in forum Access
    Replies: 4
    Last Post: 01-06-2010, 10:14 PM
  4. Inserting multiple rows using a value in a field
    By z1efuller1 in forum Queries
    Replies: 1
    Last Post: 01-06-2010, 11:20 AM
  5. Replies: 23
    Last Post: 03-26-2009, 06:50 PM

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