Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2003
    Posts
    4

    Question Unanswered: Highlight a default selection in listbox

    I'm trying to highligt a selection in a listbox.
    It has to be done when a value changes in a combo_box (sets the default value) and also when user moves on to another record.


    I'd tried to put Me.List1.Selected(Me.Combo1.value)=true in "On Current" event for the form but it complains "Update or CancelUpdate without Addnew or Edit"

    Any ideas
    //Joakim

  2. #2
    Join Date
    Aug 2003
    Location
    Argentina
    Posts
    465

    Re: Highlight a default selection in listbox

    Originally posted by knife
    I'm trying to highligt a selection in a listbox.
    It has to be done when a value changes in a combo_box (sets the default value) and also when user moves on to another record.


    I'd tried to put Me.List1.Selected(Me.Combo1.value)=true in "On Current" event for the form but it complains "Update or CancelUpdate without Addnew or Edit"

    Any ideas
    //Joakim
    This is and idea:
    1) Put your code in the after update event of the combo_box.
    2) Send the focus to the list box.
    3) In the Enter Event of the list box make a Requery.
    I thing that can work.
    Saludos
    Norberto

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •