Results 1 to 3 of 3
  1. #1
    obrien.robj is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    2

    Adding Sequential Values to Make-Table Query

    Hi new friends,

    Using a make-table query to allow users to specify a particular date range (from a wide range of dates) to quantify by day the occurrence of a specific event. I then need to group these dates according to the unique lead times of specific items so that I can aggregate them by replenishment cycle (i.e. 10 day lead time the first 10 days is one replenishment cycl). I am running into issues with assigning these dynamic date ranges unique item numbers so that I can look at them by replenishment cycle. I somehow need to add a sequential number to each observation in my user selected date range so that I can divide that observation by the lead time, round up the value, and aggregate by replenishment cycle.

    How, within a make-table query, can I assign a unique value by row that starts at one and ends at the last record?



    I have two tables:

    Selected Item Number, which contains fields: Part Number & Lead Time

    Usage_by_Date, which contains fields: Date & Usage History

    If I can somehow autonumber each date then I will be golden, as I can insert a calculation to round up autonumber/lead time.

    Apppreciate any help.

    ~ Rob

  2. #2
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,170
    Hi,

    can't you just first create the table, and then add an autonumber field (manually or by code)?

    NG

  3. #3
    obrien.robj is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    2
    Hi Noella,

    Thanks for your response. That would work fine, but I don't know how (in an automated fashion) to add an autonumber to table that I create. Can you walk me through that? I am aware of how to do it manually, but this will be used with great frequency and I can't have a manual step each time.

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

Similar Threads

  1. Adding tabulated values in a query
    By Govyn in forum Queries
    Replies: 3
    Last Post: 06-28-2010, 12:51 PM
  2. Adding tabulated values in a query
    By Govyn in forum Access
    Replies: 0
    Last Post: 06-28-2010, 08:56 AM
  3. Replies: 1
    Last Post: 10-09-2009, 11:52 AM
  4. Replies: 1
    Last Post: 01-31-2009, 10:43 AM
  5. Adding new column to make-table query
    By dtn118 in forum Access
    Replies: 2
    Last Post: 08-03-2008, 06:51 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