Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2008

Tip: Looking for answers? Try searching our database.

Form Questions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
benbanyas - 14 May 2008 12:56 GMT
I have a problem that I hope can be fixed by one of two solutions.
On a Form, I have a "Keywords" field for labeling items being entered into a
database. Some items have over 10 keywords. Is there a way to create a
ComboBox that will show a list of possible keywords where many of them can be
selected in the same field?

I would prefer to not have multiple "Keyword" fields, so if the above is not
possible how can I display the list on the form for the user to view and so
it is automatically updated when I update the list? I tried doing this by
importing an Excel file as an object and linking it, but the list did not
update on the Form when I changed it in Excel.

Another ComboBox question, if I have 3 of the same(Such as three "Ben
Banyas") in my Source Column how do I make the ComboBox only show "Ben
Banyas" once in the drop down list and not 3 times?

Thanks for any help!
Mr B - 14 May 2008 13:08 GMT
Hi, benbanyas,

First, combo boxes cannot have multiple selections made from them.

However, you can set a listbox to allow two types of multiple choices.  When
you have a listbox on a forn, take a look at the "Mulit Select" property of
the listbox.  To process the choices made from the list box, you will have to
use VBA code.  Ther are several threads here on the newsgroups that provide
such code.  

As for your second question, I am assuming that you are using a query (sql
statement) as the record source for your combo box.  You will need to set the
Unique Records property of your query to Yes.  This will prevent the display
of duplicate values.

Signature

HTH

Mr B
askdoctoraccess dot com

> I have a problem that I hope can be fixed by one of two solutions.
> On a Form, I have a "Keywords" field for labeling items being entered into a
[quoted text clipped - 13 lines]
>
> Thanks for any help!
Douglas J. Steele - 14 May 2008 13:20 GMT
Combo boxes are limited to single selection. To get multiple, you must use a
list box with the MultiSelect property set appropriately. However, not that
you should not store multiple keywords in a single field: it makes querying
the data much harder (among other problems). In fact, you cannot bind a
multiselect list box to a field. Instead, you should have a second table
related to your existing table, with each keyword being a separate row in
the second table.

As to your second question, use the DISTINCT keyword in the query you're
using as the RowSource for the combo (or list) box.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

>I have a problem that I hope can be fixed by one of two solutions.
> On a Form, I have a "Keywords" field for labeling items being entered into
[quoted text clipped - 17 lines]
>
> Thanks for any help!
benbanyas - 14 May 2008 14:13 GMT
for the last part, I am using a table, not a query as the RowSource. Is there
anyway to use the Unique Records or DISTINCT function as is or will I have to
create a query and make that the RowSource?

> Combo boxes are limited to single selection. To get multiple, you must use a
> list box with the MultiSelect property set appropriately. However, not that
[quoted text clipped - 28 lines]
> >
> > Thanks for any help!
Douglas J. Steele - 14 May 2008 14:18 GMT
Create a query. Since you presumably want the records in the combo box
presented in a specific order, that's the only way you can ensure that.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> for the last part, I am using a table, not a query as the RowSource. Is
> there
[quoted text clipped - 43 lines]
>> >
>> > Thanks for any help!
benbanyas - 14 May 2008 14:50 GMT
Thanks so much, it works now!

> Create a query. Since you presumably want the records in the combo box
> presented in a specific order, that's the only way you can ensure that.
[quoted text clipped - 46 lines]
> >> >
> >> > Thanks for any help!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.