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 Programming / January 2005

Tip: Looking for answers? Try searching our database.

How do I save multi-selections with the current record?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bugaboo - 29 Jan 2005 16:11 GMT
In Access 97:  I created a multi-selection list box.  I save the record, but
when I bring it back up, those selections are no longer hi-lited.  I hope the
answer is a simple one.  I'm not very savvy with programming language and
don't fully understand the "linking" process, so any help would be
appreciated, especially if it's really "spelled out" for me.  Thank you.
Rick Brandt - 29 Jan 2005 16:30 GMT
> In Access 97:  I created a multi-selection list box.  I save the
> record, but when I bring it back up, those selections are no longer
> hi-lited.  I hope the answer is a simple one.  I'm not very savvy
> with programming language and don't fully understand the "linking"
> process, so any help would be appreciated, especially if it's really
> "spelled out" for me.  Thank you.

It is improper database design to store multiple values in a single field.
Being aware of this Access doesn't allow an easy way to do it.  The option to
make a ListBox Multi-Selectable is only proper when the ListBox is going to be
used to support some kind of coded sub-routine.  It is NOT intended to allow you
to store multiple item in a single table field.  In fact (as you have seen),
once you turn on MultiSelect the value of the ListBox is always Null.  The way
to get at the values is (in code) to loop through the ListBox's ItemsSelected
Collection.

Whenever you *think* you need to store multiple values in a single field what
you *actually* need is a second table related to the first and then use a
subform to enter as many values you want into the subform.  The difference being
that with a subform each value gets stored in its own row of the related table.

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

 
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.