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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Combo Box Not in List function



 
 
Thread Tools Display Modes
  #1  
Old November 27th, 2009, 03:00 AM posted to microsoft.public.access.forms
leo
external usenet poster
 
Posts: 236
Default Combo Box Not in List function

I have a combo box that lists the option (limited to list) from a table
called tblALLRECCS which has only one field called RECS. How do I write a
code in Not In List event of the combo box so that any new entries that is
not in the list will be added to the RECS in the tblALLRECCS, after prompting
the user with a message box whether he/she wants to add the new item (string)
?

Can some one help.

Thanks in advance
Leo
  #2  
Old November 27th, 2009, 07:37 AM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default Combo Box Not in List function

See:
Adding values to lookup tables
at:
http://allenbrowne.com/ser-27.html

The article explains 4 options for handling this.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Leo" wrote in message
...
I have a combo box that lists the option (limited to list) from a table
called tblALLRECCS which has only one field called RECS. How do I write a
code in Not In List event of the combo box so that any new entries that
is
not in the list will be added to the RECS in the tblALLRECCS, after
prompting
the user with a message box whether he/she wants to add the new item
(string)


 




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 05:46 PM.


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