Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combox.select()

Status
Not open for further replies.

sncheong

Programmer
Jan 18, 2001
47
NZ
my combobox is working fine. after clicking it, i can store the respective listindex. what i want to know is the listindex preceding the selected listindex. how do i do that?
the rowsource of the combobox is select accn_id, accn_name from ledger1 without grouping and its rowsourcetype is 3. please help. ta
 
incomplete info. pls express further. how do ur combobox store listindex? What do u mean by preceeding the selected listindex?
 
say the combobox shows accn_id and accn_name eg
123 stationery
444 wages
463 entertainment
933 salary

and i clicked 444 entertainment.
how can i simultaneously capture 444 wages in another variable?
 
To capture these into an array, you could declare a form array or a public one, then use the InteractiveChange for the combo box and do something like:

SELECT accn_id, accn_name ;
FROM ledger1 ;
INTO ARRAY MyArray

Then just use the array like any other.
Dave S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top