It's not that simple, that's why I suggested to use grid instead.
What do you use for the recordsource of your ListBox? You have to update the recordsource for the choosen record. It's not hard, but requires some code. If you want to make it generic, you have to code for each particular possible RecordSourceType.
>David
>
>Thanks for replying i tried in the rightclick event of the listbox
>rname=INPUTBOX('Enter the name for the file','Rename')
>if empty(rname)
> messagebox('You have to enter correct name for the file')
> return 0
>endif
>this.Value=rname
>this.Refresh
>
>
>but the item doesn't get refreshed.what am i missing.
>
>txs
>>Khan,
>>
>>You could add the functionality to the rightclick, pop open your own little form with a textbox on it to edit the value, or use InputBox() to get the value.
>>
>>>I would like to allow the users to rename the item in the list box,any idea how to get it done.
If it's not broken, fix it until it is.
My Blog