Results 1 to 5 of 5
  1. #1
    Idontknow is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2014
    Posts
    3

    Collateing fields

    I have a table linked to excel that in turn is down loaded from a web site. The table is a booking form with a number of fields that I want to collate i.e. Field 1 is “Member ” field 2 is “Guest 1” field 3 is “Guest 2” field 4 is “Guest 3” field 5 is “Guest 4” etc. I want to collect all the fields in to a field called “Diner” so I have a list of diners to place on a report and also use in a sub form. Can anyone help please?


    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    What do you mean by collate?
    Bring them into a table?
    Bring all text in all fields into 1 field called Diner?
    (if so, then) INSERT INTO tTargetTbl [DINER] SELECT ( [Member] & [Guest 1] & [Guest 2] & [Guest 3] as expr1) FROM xlFile
    or as a virutal field in the query
    [Member] & [Guest 1] & [Guest 2] & [Guest 3] as DINER

  3. #3
    Idontknow is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2014
    Posts
    3
    Thanks for your reply. Sorry I don’t think I explained myself correctly. What I need is that all the fields “Members” and “Guests” etc. will appear in a Combo Box as a single list that can be used to populate a form that is designed as a Dining Table plan. This in turn will produce a report that is printed and displayed at the event .

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    You prob. need a UNION query that collects the Members, then the guests all in one

    qnGuests&Mems =
    select [members] from tbl
    union
    select [guests] from tbl


    set the combo box to this qry: qnGuests&Mems

  5. #5
    Idontknow is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2014
    Posts
    3
    That’s done it. Thanks very much!

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

Similar Threads

  1. Replies: 3
    Last Post: 05-03-2014, 11:00 AM
  2. Replies: 8
    Last Post: 08-02-2012, 10:50 AM
  3. Replies: 4
    Last Post: 05-14-2012, 06:10 PM
  4. Replies: 12
    Last Post: 05-07-2012, 12:41 PM
  5. Replies: 1
    Last Post: 02-24-2012, 12:36 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