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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

list item click to bring up info into another listbox

Status
Not open for further replies.

Octagon6

Programmer
Mar 18, 2003
18
US
The following code I have is in the click event of a list box. When the dispatch_num is found in this one table, it is supposed to send the info into another listbox. The problem is that it can only find the first record in the table.
LOCATE FOR stopovers.dispatch_num = update_disp
IF FOUND() THEN
SELECT * FROM stopovers WHERE stopovers.dispatch_num = update_disp INTO ARRAY aStop
ELSE
aStop = ""
ENDIF
 
Test the length of the array ALEN() and see if there are more than 1 record in there.

If so, you might have problem with the controlsource of the listbox.



Ali Koumaiha
TeknoSoft Inc
Farmington Hills, Michigan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top