Results 1 to 2 of 2
  1. #1
    RokitRod is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    1

    Auto generate records


    I would like to make a table in my database to assign records. We use numbered "seals" when we do inspections and I would like to assign those seals to users so they can later be entered as part of the inspection data. Essentially I want to pu in a date, the user they are assigned to and the start and finish number of the seals. When I enter the form it appends the "seals" table with the number of records that I have just added.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You mean you'd enter 1 and 10 and expect 10 records to be added to the table numbered 1 through 10? Wouldn't be difficult; you'd use a For/Next loop with the two values as the range, and within add the records using the counter value plus your other values. It would be a little like this:

    http://www.baldyweb.com/MultiselectAppend.htm

    But with a For/Next loop instead of the listbox loop.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Generate auto number like 100011,100012...
    By lizzywu in forum Access
    Replies: 6
    Last Post: 11-12-2011, 01:43 PM
  2. Replies: 2
    Last Post: 06-09-2011, 09:47 AM
  3. Auto generate reference number
    By JonB1 in forum Import/Export Data
    Replies: 1
    Last Post: 02-19-2011, 06:38 AM
  4. Auto Generate Record
    By mjhopler in forum Forms
    Replies: 2
    Last Post: 02-10-2010, 03:40 PM
  5. Replies: 1
    Last Post: 10-01-2009, 06:41 AM

Tags for this Thread

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