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
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