It points in hear about the error:
Code:
if (Edit1-Text == ADOQuery1->SQL_Text ="Select Username From UsrPass Where Username ='name'")
[BCC32 Error] Unit1.cpp(24): E2277 Lvalue required