>Hello Cetin
>
>>When rowsource is sonething that's based on a cursor (alias,fields,query,sql) then you've >a listindex=recno("underlyingsource") relationship.
>
>>Added a new record or requeried and set pointer in source to desired record:
>
>>thisform.myList.ListIndex = recno("underlyingsource")
>
>If you add a new record or delete one, are you saying that you should re-sync the listindex or, does the listbox do this automatically?
>
>Also, the cursor in question is a table buffered remote view so, the recno() of newly added records start at -1. Might this be what is causing the problem?
>
>Please let me know if you can :)
>
>Regards
>
>Angie
Angie,
Still you could use it with some calculation. ie:
.CustomProperty = reccount() && After a requery
.ListIndex = iif(recno() < 0, abs(recno())+.CustomProperty, recno())
However using Value property in that case might be easier:
myListbox.Value = myView.PK
Cetin