Results 1 to 2 of 2
  1. #1
    gilbertvb3 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2013

    Design a text box for multiple values

    I am designing a book collection database where each book can contain multiple authors. I used three tables; tblBooks, tblAuthors, tblBookAuthorJOIN. The tblBookAuthorJOIN allows me to create a subform with drop down combo boxes in the Books form linking multiple authors to each books indexed field. The Author table contains the usual FirstName, LastName, MiddleName fields. I would to be able to display the names of each author in the forms header but I am having difficulty.

    For example a book may have two authors such as:
    Authors table would contain values such as

    Last Name: Grisham
    First Name: John

    Last Name: Twain
    First Name: Mark

    Textbox in header would display: John Grisham; Mark Twain

    The authors would be displayed in the following format in the same order as listed in the subform datasheet.

    Click image for larger version. 

Name:	books2.jpg 
Views:	10 
Size:	92.9 KB 
ID:	13260

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    The Great Land
    You simply typed those numbers into textbox for demonstration purpose?

    That is concatenating data from multiple records. Requires VBA code. Review:

    Use a query that joins tblBookAuthorJOIN with tblAuthors as datasource for the procedure.

    Why do that when they are viewable in the subform? The string of authors could easily be too long for textbox.
    How to attach file: To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 05-24-2013, 02:44 AM
  2. Replies: 5
    Last Post: 04-01-2013, 11:49 AM
  3. Replacing many values at once in a multiple values checkbox field.
    By ConfusedDatabaseDesigner in forum Forms
    Replies: 2
    Last Post: 07-20-2012, 08:58 AM
  4. Replies: 2
    Last Post: 05-16-2012, 04:45 PM
  5. Displaying multiple text values in crosstab query
    By MFlood7356 in forum Queries
    Replies: 6
    Last Post: 06-28-2011, 11:30 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