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  

Update a an unbound combo box



 
 
Thread Tools Display Modes
  #1  
Old March 12th, 2010, 01:59 PM posted to microsoft.public.access.forms
avtuvy via AccessMonster.com
external usenet poster
 
Posts: 3
Default Update a an unbound combo box

I have the following scenario:
1. A form which is bound to a query (Query1)
2. Several txt boxes which are bound to fields in the query (Query1)
3. Several combo boxes which get a list of values from another query (Query2)
and a default value from Query1

When I click on the arrows at the bottom of the form to move to the next
record all of the values in the text boxes get updated but the values in the
combo boxes do not get updated. The combo boxes are not bound. I am loking
for a way to update the combo boxes as I go through the records.

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

  #2  
Old March 12th, 2010, 02:31 PM posted to microsoft.public.access.forms
ghetto_banjo
external usenet poster
 
Posts: 325
Default Update a an unbound combo box

On the form's On Current event (which runs when focus changes from one
record to another), put in this code:

Me.MyComboBox.Requery



That will update a combo box
 




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:45 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.