Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Microsoft said:[blue][purple]ListIndex Property (Microsoft Office Reference)[/purple]
Returns or sets the index number of the selected item in the list portion of the command bar combo box control. If nothing is selected in the list, this property returns zero. [purple]Read/write[/purple] Long.
Note This property fails when applied to controls other than list controls.
Remarks
Setting the ListIndex property causes the specified control to select the given item and execute the appropriate action in the application.[/blue]
As an alternate method I specify the [purple]Selected Property[/purple]:Microsoft said:[blue][purple]ListIndex Property (Access)[/purple]
Setting
The ListIndex property is an integer from 0 to the total number of items in a list box or combo box minus 1. Microsoft Access sets the ListIndex property value when an item is selected in a list box or list box portion of a combo box. The ListIndex property value of the first item in a list is 0, the value of the second item is 1, and so on.
This property is available only by using a macro or Visual Basic. You can read this property only in Form view and Datasheet view. This property is [purple]read-only[/purple] and isn't available in other views.[/blue]
[blue]Me!ListBoxName.Selected(n) = True
[purple]using PHVs reference gives[/purple]:
Me!ListBoxName.Selected(Me!ListBoxName.ListCount-1) = True[/blue]