Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[3741] Access AutoNumber Reset

Last post 06-23-2007 10:11 AM by Roccoau. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [3741] Access AutoNumber Reset

    This thread is for discussions of Access AutoNumber Reset.

    • Post Points: 35
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 09-11-2003 2:35 AM In reply to

    • jezc
    • Not Ranked
    • Joined on 09-11-2003
    • New Member
    • Points 5

    AutoNumber reset

    Well Done Mike....just what I needed! Saves re-building the database...whcih was what I'd been told by 'the experts' at our place!
    • Post Points: 0
  • 06-01-2005 9:48 AM In reply to

    • dnx177
    • Not Ranked
    • Joined on 06-01-2005
    • New Member
    • Points 15

    changed your code

    nice

    changed a line in your module code:

    sExt = Right$(sDestination, Len(sDestination) - InStrRev(sDestination, ".") + 1)
    • Post Points: 0
  • 09-09-2005 5:10 PM In reply to

    • clee
    • Not Ranked
    • Joined on 09-09-2005
    • New Member
    • Points 5
    I have access database that use autonumber (starting from 1) , I have some number that is missing, how do I reset it?
    Sorry, I am not a programmer, so I didn't understand where I should put the code .

    Thank you very much
    clee
    • Post Points: 0
  • 09-10-2005 4:13 AM In reply to

    • Apoc
    • Top 25 Contributor
    • Joined on 08-13-2001
    • Guru
    • Points 4,040
    The code is part of a Visual Basic project (VB6).  It uses an external ADO connection into Access in order to do the autonumber reset.  You can do the same thing inside of access by adding a reference to ADO in the Visual Basic editor, then editing the code to work inside an Access module.
    • Post Points: 10
  • 09-23-2005 4:28 PM In reply to

    • dohertyo
    • Not Ranked
    • Joined on 09-23-2005
    • New Member
    • Points 5

    Error - 2147467259 Method.. Help needed. Thanks

    I have been having the problem with autonumber reset for the past couple of months, and I am getting tired of having to delete the relationships, create a new table, copy the data etc... Can this reset program of your's work in Access 2003, or are there additional steps I am not completing?  I get the following error message "There has been a critical error! Error - 2147467259 Method '-' object '-' failed"

    Thank you in advance for your assistance.
    • Post Points: 0
  • 02-02-2007 8:25 PM In reply to

    • MrDeY
    • Not Ranked
    • Joined on 02-02-2007
    • New Member
    • Points 5

    Re: [3741] Access AutoNumber Reset

    Thanks a lot!! This is a very useful application!! WELL DONE!

    Dejan



    • Post Points: 5
  • 06-01-2007 6:26 PM In reply to

    • tunaroll
    • Not Ranked
    • Joined on 06-01-2007
    • United States
    • New Member
    • Points 10

    Re: The autonumber reset app

    I agree with the others that the little autonum reset application is very nice however I've been banging my head over trying to use it with a db that has a username and password.  It looks obvious but I can't seem to get it to work.
    When I plug in 2 variables:
    UserID = "Admin"
    Password = "MYPASSWORD"
    I get this error:
    "Cannot start application. The workgroup information file is missing or opened exlusively by another user."
    The database is not open at all so I don't understand what the problem is.
    I am a newbie to this so I'm thinking that I must be making some silly mistake. I was hoping that you wouldn't mind pointing me in the right direction. What am I doing wrong?

    PS ... if I disable the password in my db, your application works like a charm.
    Thanks in advance.













    • Post Points: 10
  • 06-23-2007 10:11 AM In reply to

    • Roccoau
    • Not Ranked
    • Joined on 06-23-2007
    • Australia
    • New Member
    • Points 5

    Re: The autonumber reset app

    Hi only new to access so I am not sure I am doing the right thing.

    When I run this I point it to my Database & run it. It goes through everything and completes successfully. But I cannot see any changes.

    All my autonumbers are still the same they have not been reset starting from one.

    What am I doing wrong or have I got it wrong and this is not what its suppost to do.

    Pls let me know.

    Tks

    • Post Points: 5
Page 1 of 1 (9 items)