>Hallo Jess,
>exactly this is what I mean
>regards
You can make the customer.name as the controlsource of your listbox but make sure that the rowsource of it should also be equivalent to the customer.name.
To explain it further:
listbox.rowsourcetype = 6 && fields
listbox.boundcolumn = 1
listbox.rowsource = "customer.name"
listbox.controlsource = "customer.name" && optional bec. you can directly assign value to it i.e. listbox.value = customer.name
Or make use of the customer.code
listbox.rowsourcetype = 6 && fields
listbox.boundcolumn = 2
listbox.rowsource = "customer.name, code"
listbox.controlsource = "customer.code" && optional bec. you can directly assign value to it i.e. listbox.value = customer.code
Somewhere in your code, simply put: Thisform.Listbox.Refresh()
Listindex is not a good approach to achieve this.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net
CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."