>Hi all,
>
>We have a listbox that's being populated by an SQL command. We want to click on a record in the listbox to populate the rest of the form with data based upon which record was chosen. When the code to do this is in the Click event, it does not work. Even though the record is found (found()=.t.), it still jumps to the first record in the table being searched. But when the code to do this is placed in the DoubleClick event, it works perfectly. Also, when the code is placed in a Command Button, it works perfectly (clicking on the desired record, then clicking the Command button).
>
>Any ideas what could be wrong here?
>
>Thanks very much,
>
>John
John,
Would you try this:
with this
.Value = .Value
endwith
Cetin