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

Combo box accepting new entry



 
 
Thread Tools Display Modes
  #1  
Old July 7th, 2004, 02:52 AM
Sharon
external usenet poster
 
Posts: n/a
Default Combo box accepting new entry

I am new to Access programming. My problem is I have a combo box that adds a new record to the underlying bound table. When I enter a new record I get "The text you entered isn't an item in the list. Select an item from the list, or enter text that matches one of the listed items". The dropdown shows the new record. The new record is being added to the table by use of the NotInList event but I cannot exit the combo box. I have tried requering the combo box in the Combobox_AfterUpdate event and the Form_AfterUpDate event. Any help would be appreciated.
--
Sharon
  #2  
Old July 7th, 2004, 04:05 AM
Ken Snell
external usenet poster
 
Posts: n/a
Default Combo box accepting new entry

In the NotOnList event's code, before the subroutine ends, add this line:

Response = acDataErrContinue

See if that eliminates your problem.


--

Ken Snell
MS ACCESS MVP

"Sharon" wrote in message
...
I am new to Access programming. My problem is I have a combo box that

adds a new record to the underlying bound table. When I enter a new record
I get "The text you entered isn't an item in the list. Select an item from
the list, or enter text that matches one of the listed items". The dropdown
shows the new record. The new record is being added to the table by use of
the NotInList event but I cannot exit the combo box. I have tried requering
the combo box in the Combobox_AfterUpdate event and the Form_AfterUpDate
event. Any help would be appreciated.
--
Sharon



 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cascading Combo Boxes Tom Using Forms 1 June 9th, 2004 02:04 AM
Cascading Combo Boxes Tom Using Forms 0 June 8th, 2004 09:24 PM
Combo Box Problem Charles Using Forms 0 May 28th, 2004 09:15 PM
Requery Combobox MJ Running & Setting Up Queries 7 May 25th, 2004 11:01 AM
update combo box with each entry JRLH Database Design 3 May 24th, 2004 03:29 PM


All times are GMT +1. The time now is 06:36 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.