Results 1 to 4 of 4
  1. #1
    MavisCruet is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    3

    Newb question (but possibly complex)

    I am trying to create a database to log and group tasks.



    Each will have a unique identifier and I have learned how to set up everything except:

    For ease of storage in boxes I batch my work into 6s. The database will be a log of work processed and I may need to locate each file again, and so need to keep track of the physical batch numbers.

    What I want is for the database to create a new batch number based on the next available, but then have 6 unique files added to it. The entry is via a fairly stnadard form.

    e.g. I have 10 files come in under category B, I enter data for the first 6 and it would log them under batch B00001. The following 4 logged would be under batch B00002. the next day when I get more, it would start with B00002 and then on the third one I process go to B00003.

    I was trying to figure out if I could make Access count in Base 5, but I couldn't fathom it. I am very new to the software, though I have used databases a long while back, they were incredibly simple. I am good at picking stuff up, I just need a helping hand!

    All help greatly appreciated.

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    First assign, each of your incoming files a unique integer sequence number - I'll call it SEQ_NUM.

    Then the batch number for each file is (SEQ_NUM-1)\6 + 1, so when SEQ_NUM is from 1 to 6, you get batch 1, SQQ_NUM 7 - 12 is batch 2, etc.

    The backslash is the operator for integer division : 15\6 = 2

    John

  3. #3
    MavisCruet is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    3
    Quote Originally Posted by John_G View Post
    Hi -

    First assign, each of your incoming files a unique integer sequence number - I'll call it SEQ_NUM.

    Then the batch number for each file is (SEQ_NUM-1)\6 + 1, so when SEQ_NUM is from 1 to 6, you get batch 1, SQQ_NUM 7 - 12 is batch 2, etc.

    The backslash is the operator for integer division : 15\6 = 2

    John
    That makes sense, so I should think will work. I will have a stab tonight or tomorrow. I shall let you know, thanks for the help!

  4. #4
    MavisCruet is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    3
    Quote Originally Posted by John_G View Post
    Hi -

    First assign, each of your incoming files a unique integer sequence number - I'll call it SEQ_NUM.

    Then the batch number for each file is (SEQ_NUM-1)\6 + 1, so when SEQ_NUM is from 1 to 6, you get batch 1, SQQ_NUM 7 - 12 is batch 2, etc.

    The backslash is the operator for integer division : 15\6 = 2

    John
    Thanks John, it worked. Top bloke!

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

Similar Threads

  1. Newb question
    By blkdragon201 in forum Access
    Replies: 5
    Last Post: 02-03-2011, 02:17 PM
  2. This is probally a newb question
    By tdanko128 in forum Queries
    Replies: 4
    Last Post: 01-30-2011, 12:24 PM
  3. Replies: 1
    Last Post: 08-25-2010, 09:43 AM
  4. Complex VBA Autonumber question
    By Lockrin in forum Access
    Replies: 2
    Last Post: 04-13-2010, 01:25 PM
  5. Newb Question
    By smokeyvol in forum Access
    Replies: 0
    Last Post: 01-14-2009, 08:28 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