Results 1 to 2 of 2
  1. #1
    z1efuller1 is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2009
    Posts
    9

    Inserting multiple rows using a value in a field

    I am trying to convert a job listing requisition into several job postings i.e.



    Job_Req (Table)
    Company_ID Job_Title No_of_Positions
    1 Sales Clerk 12

    I need to know what I need to use in my query to get this...

    Job_Posting (Table)
    Job_ID Company_ID Job_Title
    1 1 Sales Clerk
    2 1 Sales Clerk
    3 1 Sales Clerk
    4 1 Sales Clerk
    5 1 Sales Clerk
    6 1 Sales Clerk
    7 1 Sales Clerk
    8 1 Sales Clerk
    9 1 Sales Clerk
    10 1 Sales Clerk
    11 1 Sales Clerk
    12 1 Sales Clerk

    Any help would be appreciated.

    Thanks

  2. #2
    z1efuller1 is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2009
    Posts
    9
    Found a ugly work around for this by creating a table which lists the numbers as many times as thier value..i.e.

    No_Positions:Table

    No_Pos
    1
    2
    2
    3
    3
    3
    4
    4
    4
    4 (and so on...)

    when you run the query of postings and join this table on the number of positions available it generates the correct information I was looking for.

    However, if anyone knows a coding work around that does not cause me to need the No_Positions Table I would appreciate it.

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

Similar Threads

  1. Inserting multiple records into a table
    By New2Access in forum Programming
    Replies: 1
    Last Post: 07-07-2011, 09:18 PM
  2. Replies: 7
    Last Post: 12-11-2009, 01:44 AM
  3. Replies: 5
    Last Post: 12-10-2009, 10:33 PM
  4. Access to Excel transferring multiple rows to single row
    By peter_lawton in forum Import/Export Data
    Replies: 10
    Last Post: 09-23-2009, 10:16 AM
  5. Combine multiple rows into one cell
    By zarfx4 in forum Queries
    Replies: 8
    Last Post: 06-08-2009, 10:42 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