Results 1 to 6 of 6
  1. #1
    Dorival is offline Novice
    Windows 10 Access 2021
    Join Date
    Jul 2024
    Posts
    3

    Numeração sequencial

    Num campo com numeração sequencial, ao excluir um registro entre o primeiro e o último, fica uma lacuna, e ao navegar pelos botões anterior e próximo, dá erro.
    Qual o código para fazer com que o Access pule o registro excluído, indo para o próximo?

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,555
    Non comprende. Lo siento.
    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
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    Quote Originally Posted by Dorival View Post
    In a field with sequential numbering, when deleting a record between the first and the last, there is a gap, and when navigating through the previous and next buttons, there is an error.
    What is the code to make Access skip the deleted record, going to the next one?
    This does not normally happen with autonumber sequencing. Are you creating your own sequence numbers?
    Perhaps the best way to proceed would be to upload your database here so that we can more easily analyze the problem.

  4. #4
    Dorival is offline Novice
    Windows 10 Access 2021
    Join Date
    Jul 2024
    Posts
    3
    Quote Originally Posted by davegri View Post
    This does not normally happen with autonumber sequencing. Are you creating your own sequence numbers?
    Perhaps the best way to proceed would be to upload your database here so that we can more easily analyze the problem.
    Não sei como postar parte do BD para analisar aqui no Fórum

  5. #5
    Dorival is offline Novice
    Windows 10 Access 2021
    Join Date
    Jul 2024
    Posts
    3
    In a field with sequential numbering, when you delete a record between the first and the last one, there's a gap, and when you navigate using the previous and next buttons, it throws an error. What's the code to make Access skip the deleted record and go to the next one?

  6. #6
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    when navigating through the previous and next buttons, there is an error.
    Have you created custom navigation buttons? If so, we can start with you showing that code and a .jpg of the form

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

Similar Threads

  1. Tricky Sequencial re-numbering
    By Mick99 in forum Access
    Replies: 21
    Last Post: 08-04-2015, 11:12 PM
  2. Sequencial numbering
    By spQQky in forum Forms
    Replies: 1
    Last Post: 01-27-2012, 03: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