Choosing all data or single via combo/list

  • Thread starter Thread starter AshleyP
  • Start date Start date
A

AshleyP

I have form based on a query which picks up data from a
list of contacts, I really need my form to have a list or
combo box where I could choose individual contacts. Does
anyone know of a command button code that would allow me
to do this. Basically choose all or limit to one.

Thanks
Ash
 
Depending on what you want to do:

If Me.cboComboBoxName.Column(1) = "(All)" Then
'All was selected enter some code here
Else
'Enter code here for a single selection
End IF
 
Back
Top