Results 1 to 2 of 2
  1. #1
    aparnawangu is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2015
    Posts
    40

    How to concatenate fields

    Hi Team,


    Currently i am working on a student database in access.I have a requirement where i have to write a query with combination of two columns in access and that too one number field and one text field.
    Eg:One column contains student id like 1,2,3,4,5 etc and second column contains centre names like w1,w2,w3,w4,w5 etc.
    Problem is that same student ids can get repeated across diffrent centres like 1,w1 and 1,w2

    As student id is not unique and it will be repeated across all the centres.Pls suggest how to write the query

    Thanks
    Aparna

  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
    52,930
    Maybe like:

    SELECT ID & Centre AS ID_Ctr FROM tablename;

    If you want more specific guidance, provide names of things (table and fields). An example of the desired output would be helpful.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

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

Similar Threads

  1. Replies: 5
    Last Post: 10-19-2014, 09:52 AM
  2. Fields Concatenate insted of Add
    By modum in forum Queries
    Replies: 3
    Last Post: 02-12-2014, 04:17 PM
  3. Concatenate two fields
    By buckwheat in forum Access
    Replies: 8
    Last Post: 06-28-2013, 07:06 AM
  4. Concatenate Fields
    By Njliven in forum Forms
    Replies: 9
    Last Post: 12-21-2012, 08:31 AM
  5. Merge fields (not concatenate)
    By sberti in forum Access
    Replies: 2
    Last Post: 11-30-2012, 12:53 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