IF !USED('lookup') USE \data\reference\lookup IN 0 SHARED ENDIF SELECT lookup.desc, lookup.mailcode, lookup.code FROM lookup ; WHERE lookup.code = 28 AND THIS.List(THIS.ListIndex,2) = ALLT(lookup.mailcode) ; INTO ARRAY asubcomplaint *!* THISFORM.cboSubComplnt.DisplayValue = "" THISFORM.cboSubComplnt.Requery THISFORM.cboSubComplnt.Refresh IF USED('lookup') USE IN lookup ENDIFHere is code in the When Event of the Sub-complaint combobox:
IF !USED('lookup') USE \data\reference\lookup IN 0 SHARED ENDIF SELECT lookup.desc, lookup.mailcode, lookup.code FROM lookup ; WHERE lookup.code = 28 AND THISFORM.cboComplnt.List(THISFORM.cboComplnt.ListIndex,2) = ALLT(lookup.mailcode) ; INTO ARRAY asubcomplaint THIS.Requery THIS.Refresh IF USED('lookup') USE IN lookup ENDIFAm I doing these lookups at the right time? How come the code works sometimes, but not all the time. Do I even need the code in the When Event of the Sub-complaint combobox? Thanks for a clue.