Good day everyone... I have this code,
IF this.Parent.text7.value = 1
identifier = ALLTRIM(UPPER(tsulat.special))
ELSE
identifier = ALLTRIM(UPPER(tsulat.status))
ENDIF
IF FLOCK()
SCAN NOOPTIMIZE FOR ALLTRIM(this.Parent.CboGrdLvl.value) = ALLTRIM(tsulat.grade) AND identifier = indicator
this.Parent.text4.value = TRIM(tsulat.idnum)
this.parent.text1.value = TRIM(tsulat.sname) + ", " + TRIM(tsulat.fname)
this.Parent.text2.value = TRIM(tsulat.mobile)
i want criteria in my scan differs depending whether text7.value is 1 or not... but i dont seem to get the right code... please help thanks...
IF this.Parent.text7.value = 1
identifier = ALLTRIM(UPPER(tsulat.special))
ELSE
identifier = ALLTRIM(UPPER(tsulat.status))
ENDIF
IF FLOCK()
SCAN NOOPTIMIZE FOR ALLTRIM(this.Parent.CboGrdLvl.value) = ALLTRIM(tsulat.grade) AND identifier = indicator
this.Parent.text4.value = TRIM(tsulat.idnum)
this.parent.text1.value = TRIM(tsulat.sname) + ", " + TRIM(tsulat.fname)
this.Parent.text2.value = TRIM(tsulat.mobile)
endif
i want criteria in my scan differs depending whether text7.value is 1 or not... but i dont seem to get the right code... please help thanks...