Code Label Won't Indent in Access

James 0 Reputation points
2025-07-08T12:07:39.77+00:00

When I try indenting a Label in Access by pressing the Tab key the code jumps back to the beginning of the line.

This occurs on 'ErrorHandler:'

If I remove the colon the label indents fine.

Any ideas?

James

Microsoft 365 and Office | Access | Development
{count} votes

3 answers

Sort by: Most helpful
  1. Duane Hookom 26,280 Reputation points Volunteer Moderator
    2025-07-08T12:29:37.9366667+00:00

    Are you attempting to enter a caption on a label control? You mention code jumping, are you in VBA?

    Some of your post sounds like you might have a form open that has a timer enabled.

    0 comments No comments

  2. Viorel 123.5K Reputation points
    2025-07-08T12:54:36.85+00:00

    VBA Editor has the Auto Format feature, such as replacing a+b with a + b or arranging the labels. This appears to be a useful feature, which seems to be not easily deactivated through documented means.

    0 comments No comments

  3. Karl Donaubauer 2,076 Reputation points MVP
    2025-07-08T14:33:13.4633333+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.