|
It should be wrong in this sentence ADOQuery1->SQL->Text ="select password from username where name=" + Edit2->Text;
If your username is int, then this sentence is correct. If it is not int, you are definitely wrong.
"select password from username where name ='" + Edit2->Text + "'";//Note that I added 2' |
|