Results 1 to 3 of 3
  1. #1
    swavemeisterg is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    28

    Find like serial numbers, determine next in line, populate field

    Hey guys,

    I'm kinda stuck on this. I'm pretty new to access but am ready to take on pretty much any level of difficulty.



    Here's the issue:
    I am creating a database to allow users to input test specimens by number and various factors. Our numbering system looks like this ##-###-####, where the first number designates the form of specimen (ball, disk, roller), the second number designates the material (steel, aluminum, etc.), and the last number is a simple serial number.

    I have set up the form so that when the user selects the kind of specimen and the material, they can click a button to populate the "Specimen Number" field with the first two numbers. This works well. But what I would love to be able to do is have that button also search the table, find the latest entered specimen (third number highest), increment the serial number, and populate the field.

    Does that make any sense? Feel free to ask questions or correct me if my language is inadequate. Like I said, I'm pretty new.

    Thanks for the help!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    I don't like putting too much intelligence into "concatenated codes", but some do. I like one fact 1 field. You can concatenate field and display on forms if that is helpful, but I'd still have these as discrete fields in tables. The idea is that at some point, someone or some thing will want to adjust the scheme for some new attribute or other factor.
    Easy enough to add the field in a table, but a real pain to now adjust the "intelligent code" reconcile all history and carry on. May not be an issue for you --but I've seen it many times.

    Having said that - here's an example of a code with lots of built in intelligence.
    Good luck with your project.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Generating custom unique identifier is common topic. Search forum. Here is one https://www.accessforums.net/forms/n...lly-41161.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. mutli serial numbers in one
    By wirelineuk in forum Queries
    Replies: 1
    Last Post: 10-11-2012, 01:26 PM
  2. Automatic Serial Numbers
    By Mitch87 in forum Access
    Replies: 9
    Last Post: 02-18-2010, 12:57 PM
  3. organizing serial numbers and quantities
    By Diomeneus in forum Access
    Replies: 0
    Last Post: 11-14-2008, 03:17 PM
  4. How do I find the serial value of Now()?
    By JoeG in forum Queries
    Replies: 0
    Last Post: 03-13-2007, 08:16 AM
  5. Replies: 5
    Last Post: 02-08-2006, 08:42 PM

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