Try the following...
hold1 = "[Username] like'" + txtUserName.Text + "'"
hold2 = "[Password] like'" + txtPassword.Text + "'"
Set Adodc1.Recordset = hold1 ''Or hold 2, what you want to use...
Your error is referring to your recordset wich is invalid. Use hold1/2 as the recordset.
AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20