Results 1 to 3 of 3
  1. #1
    WickidWe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    123

    two textboxes in form to one cell in table

    I have a form to input info into a table
    how can I combine 2 txtboxes to one column separated by ", "

    Example:

    textboxes:
    txtboxFirstName txtboxLastName

    output:

    Last, First


    into the "Name" Field in my table

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    You don't. Not in the table. Store the name parts in separate fields. Use queries to concatenate the fields for display purposes.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    If you absolutely must do that, then you use two updateable unbound text boxes, and one bound textbox that can't be updated by the user. In the after update event of each updateable text box, you recalculate the value of the bound textbox. You would include the ", " between them only if both fields were nonblank.

    It's not best practices, but if you already have lots of data in that format, it may be the best you can do.

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

Similar Threads

  1. Replies: 1
    Last Post: 07-12-2013, 01:48 PM
  2. how to put a table cell in a access form
    By debon123 in forum Forms
    Replies: 1
    Last Post: 05-05-2012, 10:55 AM
  3. cell from table to unrelated form
    By Justin Warner in forum Forms
    Replies: 3
    Last Post: 01-01-2012, 08:06 PM
  4. Replies: 1
    Last Post: 09-11-2011, 06:14 PM
  5. Can we post Access cell data to Excel cell properties?
    By Zethro in forum Import/Export Data
    Replies: 1
    Last Post: 12-13-2005, 08:42 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