Results 1 to 3 of 3
  1. #1
    tozey is offline Novice
    Windows XP Access 97
    Join Date
    Aug 2010
    Posts
    14

    Display row number of listbox selected

    Hi all



    I had this but lost this and I cannot remember how it worked.

    Looking to have a text box display the row number of the row in a listbox selected. I had it in an example database I downloaded somewhere but I have deleted it somewhere along the line.

    If any can help that would be very much appreciated.

    thanks

    Alex

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    In the list box,AFTERUPDATE event,
    txtBox = listBox.listindex+1

    (In vb,lists start with zero)

  3. #3
    tozey is offline Novice
    Windows XP Access 97
    Join Date
    Aug 2010
    Posts
    14
    You are the man!


    thank you

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

Similar Threads

  1. Listbox Changes BackColor When Selected
    By kdbailey in forum Access
    Replies: 5
    Last Post: 03-28-2016, 01:48 PM
  2. ListBox Selected Record
    By bahalzamon in forum Access
    Replies: 4
    Last Post: 08-04-2015, 03:12 PM
  3. Listbox.Selected not working
    By Dave D in forum Programming
    Replies: 11
    Last Post: 07-16-2014, 02:14 PM
  4. Replies: 3
    Last Post: 02-01-2011, 09:47 AM
  5. Selected items in listbox
    By tomodachi in forum Access
    Replies: 1
    Last Post: 09-09-2010, 01:14 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