Results 1 to 3 of 3
  1. #1
    delaikhi is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2014
    Posts
    15

    Unhappy Inconsistency in numbers

    In a table I have one field named [Order_Code]; it is supposedly to be incremental in value. Normally, the values are added by 1 from a form field. Problem is sometime numbers are consistent, because the crazy guy who gives me the orders missed one or two orders. At the end of the day, we have to look hard to find the missing numbers. Anyway to filter out those missing numbers? Thanks

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I would write a UDF.

    Enter a starting number (kounter) and an optional end number,
    then open a recordset on the table with the field Order_Code
    loop through the recordset,
    comparing recordset number to the Kounter
    if Kounter doesn't exist in the recordset,
    print it to a text file/ display it/ save it in a table for reporting later.

    stop at end of recordset or end kounter number.

  3. #3
    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
    Just curious why the order_codes must be incremental? If you put a Date on the Order, you can always count the orders for a given day via query.

    What happens when you really do have to cancel an Order -- do you go back and renumber all subsequent Orders?

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

Similar Threads

  1. Replies: 8
    Last Post: 03-10-2014, 11:47 AM
  2. same numbers = differnet numbers?
    By mike02 in forum Queries
    Replies: 1
    Last Post: 07-17-2013, 03:40 PM
  3. Comparison Inconsistency
    By topcat39 in forum Queries
    Replies: 2
    Last Post: 06-22-2013, 12:23 PM
  4. Replies: 1
    Last Post: 11-29-2011, 08:43 AM
  5. numbers
    By Balen in forum Access
    Replies: 1
    Last Post: 08-17-2010, 05:16 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