A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Create a multi-select list box with a NotinLIst procedure



 
 
Thread Tools Display Modes
  #1  
Old March 25th, 2010, 05:25 PM posted to microsoft.public.access.gettingstarted
forest8
external usenet poster
 
Posts: 196
Default Create a multi-select list box with a NotinLIst procedure

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


  #2  
Old March 25th, 2010, 06:53 PM posted to microsoft.public.access.gettingstarted
fredg
external usenet poster
 
Posts: 4,386
Default Create a multi-select list box with a NotinLIst procedure

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
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:55 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.