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 and record selector



 
 
Thread Tools Display Modes
  #1  
Old August 21st, 2006, 04:11 PM posted to microsoft.public.access.forms
Ted W.
external usenet poster
 
Posts: 7
Default Combo Box and record selector

I have a combo box set up on my form that is used to select specific item
numbers. The form then shows all the information for that Item number. The
combo box works perfectly except when someone clicks on the "next" or
"previous" record selection buttons on the bottom of the form. When these
buttons are clicked the item number in the combo box does not change. All of
the other information does however change to the next record. How can i get
the combo box value to also change when the record selectors are used?
  #2  
Old August 21st, 2006, 04:33 PM posted to microsoft.public.access.forms
satty via AccessMonster.com
external usenet poster
 
Posts: 6
Default Combo Box and record selector

is the combo box property - allowEdits set to YES?

Ted W. wrote:
I have a combo box set up on my form that is used to select specific item
numbers. The form then shows all the information for that Item number. The
combo box works perfectly except when someone clicks on the "next" or
"previous" record selection buttons on the bottom of the form. When these
buttons are clicked the item number in the combo box does not change. All of
the other information does however change to the next record. How can i get
the combo box value to also change when the record selectors are used?


--
Message posted via http://www.accessmonster.com

  #3  
Old August 21st, 2006, 04:58 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Combo Box and record selector

Your combo is obviously an unbound control. Unbound controls know nothing of
the form's record source. If you want it to stay in sync with the data, you
can use the form's Current event provided there is a text box bound to the
field that matches the row source of the combo.

If Me.NewRecord Then
Me.MyCombo = Null
Else
Me.MyCombo = Me.txtBoundTextBox
End If

"Ted W." wrote:

I have a combo box set up on my form that is used to select specific item
numbers. The form then shows all the information for that Item number. The
combo box works perfectly except when someone clicks on the "next" or
"previous" record selection buttons on the bottom of the form. When these
buttons are clicked the item number in the combo box does not change. All of
the other information does however change to the next record. How can i get
the combo box value to also change when the record selectors are used?

 




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 09:52 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.