Results 1 to 3 of 3
  1. #1
    Lesg is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Sep 2021
    Posts
    101

    Show Last Used Number

    Hi Guys, We have made changes to a clients table and have added a new column 'codes22' which is because client wants to change his product numbering which was originally based on the tables PK 'productID' auto number.

    The new column is set to be unique but allows nulls as they have 2 code ranges they want to manage items between 20000 to 29999 then 90000 to 99999

    There is a form to edit existing or add new products but as field codes22 is no auto number, they need to add new number manually, so I am looking to see how I can add embedded forms showing the last 20000 number and the last 90000 number used, so they can add the next available number in the relevant sequence?



    Thanks in advance

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,943
    Use DMax()
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    xps35's Avatar
    xps35 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    232
    Why do users have to add the new number manually? I assume which series applies is inferred from other data. The process should therefore be automatable.

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

Similar Threads

  1. How to show next available record number
    By gebmiller1984 in forum Forms
    Replies: 1
    Last Post: 02-04-2015, 01:23 PM
  2. Replies: 9
    Last Post: 06-25-2014, 01:17 PM
  3. Replies: 4
    Last Post: 04-26-2014, 02:47 AM
  4. Show next number in sequence
    By cbrsix in forum Programming
    Replies: 1
    Last Post: 08-15-2013, 04:09 PM
  5. Show age from social security number
    By carstenhdk in forum Forms
    Replies: 5
    Last Post: 05-27-2010, 04:37 PM

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