Can someone tell me why i can't find a record in table 'er-200' when i use example 1.
But when i use example 2, i do find that record.
When i use both examples on other databases (V9 or V10) they both work.
DEF VAR c_sleutel AS CHAR NO-UNDO.
/* 1 */
FIND FIRST er-200 WHERE er-200.cd_hfdrelnr = '00000017' NO-LOCK NO-ERROR.
FOR EACH ba-012
where ba-012.id-cdads = er-200.cd_adressleutel NO-LOCK:
DISP ba-012.
END.
/* 2*/
FIND FIRST er-200 WHERE er-200.cd_hfdrelnr = '00000017' NO-LOCK NO-ERROR.
c_sleutel = er-200.cd_adressleutel.
FOR EACH ba-012
where ba-012.id-cdads = c_sleutel NO-LOCK:
DISP ba-012.
END.