Results 1 to 3 of 3
  1. #1
    templeowls is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    305

    Lookup function to pull data across multiple columns


    I'll try to explain this as best as possible. So I have eight columns in my table that are mutually exclusive events. So entry 2 will only have data in one of the columns, same with row 3 and so on. Is there a way add a column in my table at the very end that pulls the data from whichever column its in and displays it? I feel like it easy to do but I'm just having a brain fart. I have roughly 1200 rows so I'd like to not have to manually type in each row's description. Plus this would allow me to run queries and reports much easier.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    This sounds like the table is designed wrong. You should be adding records, not columns.
    can you show example?

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Agree with Ranman on the design issue.

    To do what you want you need a query where you add a calculated field that concatenates your eight fields:
    Summary:[Field1] & [Field2] & [Field3].........& [Field8]

    Cheers,
    Vlad

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

Similar Threads

  1. Replies: 2
    Last Post: 03-10-2017, 01:26 PM
  2. Show Multiple Columns in Lookup Field
    By KASmith42 in forum Forms
    Replies: 29
    Last Post: 09-07-2016, 06:42 AM
  3. Replies: 1
    Last Post: 11-25-2013, 09:45 PM
  4. One lookup to pull through multiple fields
    By simon238 in forum Access
    Replies: 13
    Last Post: 12-03-2012, 02:06 PM
  5. Lookup multiple columns in combo box
    By fcp in forum Programming
    Replies: 1
    Last Post: 12-22-2011, 08:44 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