Results 1 to 4 of 4
  1. #1
    marco778 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    May 2015
    Posts
    1

    Row duplication using column list MS Access Solution

    I would like to use Access in order to duplicate the content of a list of values into new rows based on the content of a column.
    Here is an example below:
    List1 List2
    A 1
    B 2
    C 3
    D 4
    E 5
    F 6
    G 7
    Duplication
    A1
    A2
    A3
    A4
    A5
    A6
    A7
    B1
    B2
    B3
    B4
    B5
    B6
    B7
    Etc
    How can I achieve this in Access?


  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    You can create an alias within a query. When you concatenate to fields together, you can get the result you desire. You can put syntax similar to the following in the Grid at the bottom of the window of the Query Builder. It will create a new column. Place it the row labeled "Field"

    Code:
    MyAlias: [TableOne].
    [List1] & [Table2].
    [List2]
    Last edited by ItsMe; 05-28-2015 at 05:12 PM. Reason: Wrap with code tags

  3. #3
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    use what is called a Cartesian query - basically 2 or more tables without a join. something like

    SELECT letter & number AS Duplication
    FROM List1,List2

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by Ajax View Post
    use what is called a Cartesian query...
    Yeah, it looks like that is what the OP is asking for. I did not notice the pattern. Besides, I can't seem to get my SQL to stay on the same line.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-20-2014, 11:43 AM
  2. Replies: 3
    Last Post: 09-16-2011, 10:09 AM
  3. Web Based Solution Reading Access Database
    By EddieN1 in forum Access
    Replies: 1
    Last Post: 08-06-2011, 04:38 PM
  4. Access 2010 package solution upgrade option
    By snoopy2003 in forum Programming
    Replies: 5
    Last Post: 05-17-2011, 09:23 AM
  5. Access Database Duplication problem
    By Tempuser in forum Queries
    Replies: 9
    Last Post: 09-10-2009, 05: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