Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List Box - Predefined Values

Status
Not open for further replies.

valterduarte

Technical User
Nov 25, 2005
15
0
0
PT
Hello!

I have a form with a list box that contains 4 values.

I want all the values to be "pre-selected".

Can anyone tell me how to do that?

Thank you!
 
This:
Microsoft: Access Forms Forum
forum702
Is the best forum for Access forms.

You will need a multi-select listbox, and perhaps something like:
Code:
Private Sub Form_Current()
For i = 0 To Me.lstList.ListCount - 1
    Me.lstList.Selected(i) = True
Next
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top