Results 1 to 2 of 2
  1. #1
    dama is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2012
    Posts
    1

    Access generating random numbers

    Hi,

    New to this forum but have been using access for some years, I have recently come across a problem with a db installed on a clients machine. The machine is running win7 Pro, it has an Access2003 db and runtime installed. There is no Virtual Directory been created. The problem itself does not happen all the time.

    The Problem:
    There is a product form which after entering a product description runs a macro, the macro uses the recorded (Autonumber) and then adds 0's to the front to create a 6 digit product code, this is used to print a barcode label. What seems to have happened is that access generates an Autonumber of say 2132, and the product field apparently gets populated with a number like 002750. I say apparently because I can't get this to happen on XP or Win7. I have seen the data and there are seemingly random numbers in the fields, although I was only able to find 3, the client has produced labels for about 15. There is one other thing, the product code field is editable as they have the option of using a supplier product code in place of the access generated one.

    So, how does this happen and where are the records with all the other random numbers on?

    I am completely baffled. I did check the PC and was unable to find any other copies of the back end database.

    Any ideas would be helpful.

    Thanks.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,923
    Have you done a Compact and Repair yet? Maybe this link will apply: http://allenbrowne.com/ser-40.html

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

Similar Threads

  1. Replies: 1
    Last Post: 04-28-2011, 03:32 PM
  2. generating automatic numbers in a database
    By bonbon68 in forum Access
    Replies: 3
    Last Post: 03-16-2011, 10:09 AM
  3. Random Text and Numbers
    By Mclaren in forum Programming
    Replies: 5
    Last Post: 11-05-2010, 04:34 AM
  4. Random numbers
    By Gator777 in forum Access
    Replies: 3
    Last Post: 08-12-2009, 10:04 AM
  5. generating random numbers on form
    By anitra in forum Forms
    Replies: 1
    Last Post: 02-14-2006, 10:08 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