Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

current record

Status
Not open for further replies.

phpatrick

Programmer
Jul 9, 2006
72
BE
I have a continious form.
When I am on a certain record and I use the event onclick on a textbox he should dropdown the listbox beside the textbox (in the current record).

How to select the list-box of the current record.

Code:
Me.Requery
    Me.Recordset
    Me!refDropDown.SetFocus
    Me!refDropDown.Dropdown
 
Why not using a combobox?

________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
Have you tried setting the focus to some other control and then back to refDropDown before the dropdown action?
 
Does changing the focus solve the problem?
 
no, he always jump to the first record of my continious form
 
Because it does the form Requery. Remove that part of code.
then if you want refresh the combo
use any of the following and try.

Me.Combobox1.Refresh
Me.Combobox1.Requery
Me.Combobox1.Recalc

________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
The jump to first record is caused by Me.Requery. Do you need to requery? If so, you will need to save the ID of the current record and go back to it after the requery.
 
yep, great, it works, life can be easy with a little help.
I need to requery but I do this now after the combobox.dropdown

txs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top