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  

Combobox Display confusing



 
 
Thread Tools Display Modes
  #1  
Old June 13th, 2004, 07:49 PM
Annelie
external usenet poster
 
Posts: n/a
Default Combobox Display confusing

When someone selects an item from a combo box, the curser jumps to the
record selected. It is then possible to scroll to the next or previous
record. But the combobox still shows the originally selected item. Is it
possible to clear the combobox when the item no longer matches the item
selected? It just looks confusing. Or even better, make the combobox scroll
with the current records.

Annelie


  #2  
Old June 14th, 2004, 12:49 AM
fredg
external usenet poster
 
Posts: n/a
Default Combobox Display confusing

On Sun, 13 Jun 2004 14:49:37 -0400, Annelie wrote:

When someone selects an item from a combo box, the curser jumps to the
record selected. It is then possible to scroll to the next or previous
record. But the combobox still shows the originally selected item. Is it
possible to clear the combobox when the item no longer matches the item
selected? It just looks confusing. Or even better, make the combobox scroll
with the current records.

Annelie


Add one line of code at the end of the Combo Box event (AfterUpdate)
or in the Form's Current event:
Me![ComboName] = ""


--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
  #3  
Old June 14th, 2004, 02:25 AM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default Combobox Display confusing

It is better to synchronise the ComboBox with the current Record.

In the Form_Current Event, use something like:

Me.ComboBox = Me.RecordID

RecordID should be the Bound Column of your ComboBox.

--
HTH
Van T. Dinh
MVP (Access)




"Annelie" wrote in message
...
When someone selects an item from a combo box, the curser jumps to the
record selected. It is then possible to scroll to the next or previous
record. But the combobox still shows the originally selected item. Is it
possible to clear the combobox when the item no longer matches the item
selected? It just looks confusing. Or even better, make the combobox

scroll
with the current records.

Annelie




  #4  
Old June 14th, 2004, 04:00 PM
Annelie
external usenet poster
 
Posts: n/a
Default Combobox Display confusing

Thanks to both of you,
I got Fred's suggestion to work but the other one, my program did not like.
I could not get the form to go back to forms view. Perhaps I didn't do it
correctly.
Annelie

"Annelie" wrote in message
...
When someone selects an item from a combo box, the curser jumps to the
record selected. It is then possible to scroll to the next or previous
record. But the combobox still shows the originally selected item. Is it
possible to clear the combobox when the item no longer matches the item
selected? It just looks confusing. Or even better, make the combobox

scroll
with the current records.

Annelie




  #5  
Old June 16th, 2004, 09:16 PM
Annelie
external usenet poster
 
Posts: n/a
Default Combobox Display confusing

I went at it again today, because I did not like what I got when the
combobox completely cleared. So I tried Van's suggestion again and I did it
right putting into the Forms_Current Event and now the selection scrolls
right with the rest of the form. Cool
Annelie

"Van T. Dinh" wrote in message
...
It is better to synchronise the ComboBox with the current Record.

In the Form_Current Event, use something like:

Me.ComboBox = Me.RecordID

RecordID should be the Bound Column of your ComboBox.

--
HTH
Van T. Dinh
MVP (Access)




"Annelie" wrote in message
...
When someone selects an item from a combo box, the curser jumps to the
record selected. It is then possible to scroll to the next or previous
record. But the combobox still shows the originally selected item. Is it
possible to clear the combobox when the item no longer matches the item
selected? It just looks confusing. Or even better, make the combobox

scroll
with the current records.

Annelie






 




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