PC Review


Reply
Thread Tools Rate Thread

Create a multi-select list box with a NotinLIst procedure

 
 
forest8
Guest
Posts: n/a
 
      25th Mar 2010
Hi

I would like to create a multi-select list box that will allow the selection
of multiple values. I would also like to include a NotInList procedure that
will add new values if needed.

The list box is based on a separate table which I called LB_actions.

Is this possible? Also, how do I sort the entries after new entries have
been added?

Thank you in advance


 
Reply With Quote
 
 
 
 
fredg
Guest
Posts: n/a
 
      25th Mar 2010
On Thu, 25 Mar 2010 09:25:01 -0700, forest8 wrote:

> Hi
>
> I would like to create a multi-select list box that will allow the selection
> of multiple values. I would also like to include a NotInList procedure that
> will add new values if needed.
>
> The list box is based on a separate table which I called LB_actions.
>
> Is this possible? Also, how do I sort the entries after new entries have
> been added?
>
> Thank you in advance


A List Box does not permit the entry of a value not already in it's
list, nor does it even have a NotInList event.

In general, you would need to use an text control (on a form) to first
enter the new value into the [LB_actions] table. Then use the text
control's AfterUpdate event to requery the List Box Rowsource (which
should be a query, not the table itself. You can sort the query on
whatever field you wish).
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Multi-Select List box =?Utf-8?B?UmlwcGVy?= Microsoft Access Forms 3 28th Apr 2007 06:36 AM
how to create a multi-select list box =?Utf-8?B?TTM=?= Microsoft Access Database Table Design 0 1st Jun 2006 02:44 PM
How do I: Create New Records based on 3 Multi-Select List Boxes? =?Utf-8?B?TWlrZVp6?= Microsoft Access Form Coding 7 9th Feb 2005 06:39 PM
Creating a multi table select stored procedure Karl Microsoft ADO .NET 2 19th Nov 2003 05:18 PM
Extract values from a multi-select multi-column list-box Peter Microsoft Excel Programming 5 28th Sep 2003 04:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:34 AM.