Results 1 to 5 of 5
  1. #1
    Kabeebabee is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Nov 2015
    Posts
    3

    Merging two access fields, one of which is a .Value

    I am trying to create a query where there are two fields, CCE Analysts and FMPD Analysts. CCE Analysts have multi-values where FMPD Analysts are single value. The query should create one field with all names but I kept getting the message "The multi-valued field '[CCE Analyst]' is not valid in the expression [CCE Analyst] &""& [FMPD Analyst]'. I then created a flattened field named CCE Analyst.Value and renamed the Expression ]CCE Analyst.Value] &""& [FMPD Analyst]. Now the message is Invalid bracketing of name [CCE Analyst.Value]. Can someone please give me some well needed guidance?

  2. #2
    Kabeebabee is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Nov 2015
    Posts
    3
    I was able to concatenate by bracketing [CCE Analyst].[Value] but that's not what I want. I want a list of all names from both columns

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Are you using lookup fields in your table? Are you using a Value List or a Table?

  4. #4
    Kabeebabee is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Nov 2015
    Posts
    3
    It is with a Value List

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Create a query using the Query Designer. Add the one table that has the lookup field to the design surface. Add the Primary Key field and also the field that is the Lookup to the Grid. In the Criteria for the column that is the Lookup, add the following text.
    In ('foo','bar','baz')
    You will need to edit your version of criteria. The criteria I posted here is for a Lookup field that has the options of foo, bar, and baz. So replace the text with the values from your lookup field (retrieve from your table while in design view).

    Save and name your new query. See if this new query is helpful when creating other queries. For instance, add it as a subquery to another query object.

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

Similar Threads

  1. merging fields
    By Jen0dorf in forum Access
    Replies: 9
    Last Post: 08-23-2015, 01:47 PM
  2. Merging fields in a table
    By Bx Snipe in forum Access
    Replies: 1
    Last Post: 09-24-2012, 01:45 PM
  3. Replies: 5
    Last Post: 07-28-2011, 08:34 AM
  4. merging fields, link, text boxes
    By compooper in forum Programming
    Replies: 1
    Last Post: 06-23-2011, 03:30 PM
  5. merging two fields
    By brandon in forum Access
    Replies: 5
    Last Post: 06-09-2010, 08:17 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