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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top