here is my code in my login form:
my problem is that it always shows the 1st message:
I already check the code:
and it seems to be correct..
Is there something wrong in my code?
tns in advance..
Code:
LOCATE FOR Username = ALLTRIM(thisform.txtuname.value) AND utype = ALLTRIM(thisform.combo1.DisplayValue)
IF FOUND()
If alltrim(thisform.txtuname.value)= alltrim(Username) AND ALLTRIM(thisform.combo1.DisplayValue) =ALLTRIM(utype) AND ALLTRIM(thisform.Cmb_question.DisplayValue) =ALLTRIM(Question) AND ALLTRIM(thisform.txt_ans.value) =ALLTRIM(Ans) THEN
Do something...
else
messagebox('Please recheck your input1!',16," Error input!")
ENDIF
else
messagebox('Please recheck your input2!',16," Error input!")
endif
my problem is that it always shows the 1st message:
Code:
messagebox('Please recheck your input1!',16," Error input!")
I already check the code:
Code:
If alltrim(thisform.txtuname.value)= alltrim(Username) AND ALLTRIM(thisform.combo1.DisplayValue) =ALLTRIM(utype) AND ALLTRIM(thisform.Cmb_question.DisplayValue) =ALLTRIM(Question) AND ALLTRIM(thisform.txt_ans.value) =ALLTRIM(Ans) THEN
Is there something wrong in my code?
tns in advance..