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  

Add/Edit combo box question



 
 
Thread Tools Display Modes
  #1  
Old December 19th, 2006, 06:00 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 4
Default Add/Edit combo box question

I've got a couple combo box fields in a subform set up to open pop-up
forms on double-click as a way of adding new items to those lists.
When I open the pop-up, add a new item, then close the pop-up form, the
new item is not available in the combo box list.

The row/source type for the combo fields is set to Table/Query and the
row sources are queries of, respectively, a parts list and list of
service types.

I want to get the combo box list to automatically update and show any
new items added through the pop-up form. How can I make this work?

  #2  
Old December 19th, 2006, 06:09 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Add/Edit combo box question

you need to requery the combo after you add the new item in the pop-up.

" wrote:

I've got a couple combo box fields in a subform set up to open pop-up
forms on double-click as a way of adding new items to those lists.
When I open the pop-up, add a new item, then close the pop-up form, the
new item is not available in the combo box list.

The row/source type for the combo fields is set to Table/Query and the
row sources are queries of, respectively, a parts list and list of
service types.

I want to get the combo box list to automatically update and show any
new items added through the pop-up form. How can I make this work?


  #3  
Old December 19th, 2006, 06:24 PM posted to microsoft.public.access.forms
missinglinq via AccessMonster.com
external usenet poster
 
Posts: 545
Default Add/Edit combo box question

You have to Requery your combobox after adding the new item!

YourComboboxName.Requery

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200612/1

  #4  
Old December 27th, 2006, 08:07 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 4
Default Add/Edit combo box question

Do I include that as an Event in the combo box itself or in the pop-up
form used to add items? Such as in "On Close" event of the popup form?

thanks,
Tim

missinglinq via AccessMonster.com wrote:
You have to Requery your combobox after adding the new item!

YourComboboxName.Requery

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200612/1


 




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 01:44 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.