PC Review


Reply
Thread Tools Rate Thread

Combo Box and record selector

 
 
=?Utf-8?B?VGVkIFcu?=
Guest
Posts: n/a
 
      21st Aug 2006
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?
 
Reply With Quote
 
 
 
 
satty via AccessMonster.com
Guest
Posts: n/a
 
      21st Aug 2006
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

 
Reply With Quote
 
=?Utf-8?B?S2xhdHV1?=
Guest
Posts: n/a
 
      21st Aug 2006
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?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Record Selectors VS Combo Box Record Selector =?Utf-8?B?RWFybENQaGlsbGlwcw==?= Microsoft Access Form Coding 4 4th Oct 2006 04:58 PM
Record selector from a combo box =?Utf-8?B?U2VjcmV0IFNxdWlycmVs?= Microsoft Access 7 16th Jan 2006 12:00 AM
combo box serving as record selector??? ABW Microsoft Access Forms 0 17th Aug 2004 11:35 PM
combo box /record selector Virginia Microsoft Access Forms 1 21st Nov 2003 02:08 AM
Use combo box as record selector Jonathan Blitz Microsoft Access Forms 7 5th Nov 2003 05:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:42 PM.