Auto_complete galore


I’m using auto_complete with textfield, called CompanyCode. so when you
type fx ‘0403’ it will show a list with matching company codes, and the
respective company name - like so:

040333 - Some company inc
040322 - Another company
040323 - whatever Corp.

Anyway, once a user selects one of the entries from the list - the whole
text (name and code) is put into the textfield. However, I would like to
put the full code into the CompanyCode field, and the name into another
field, fx CompanyName.

Any ideas ?



I am another lost newbie stalled at the same issue. Must be an approach
I am taking.

thanks in advance for any pointers