w11 insider Access VBA: TopIndex in ListBox Control not supported

ano fok 0 Reputation points
2025-04-03T01:57:08.1+00:00

Using a laptop with Windows 11 Insider and Access 365, the following steps were taken:

  1. Created a new blank form with the required TextBox, Button, and ListBox controls.
  2. Implemented an topindex example in VBA, replacing control names with those from the form.
  3. Upon saving and running the form, the highlight on TopIndex "method or data member not found."
  4. Commented out the TopIndex lines, but the code stops at .Text= which runs after adding .Focus in front.
  5. Seeking clarification on where the initiation is used
  6. why a button is necessary if clicking on the ListBox can serve the same function.

Any insights or assistance with this issue would be appreciated.

Microsoft 365 Developer Program
Microsoft 365 Developer Program
Microsoft 365: Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.Developer Program: A Microsoft program designed to help developers build cross-platform productivity experiences by giving them access to a developer subscription, sample data packs, documentation, training, experts, recommendations, and community events.
173 questions
{count} votes

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.