我的一段代码 dim DBCommand as new oledbDataAdapter dim DSpageData as new Dataset DBConn = New OleDbConnection(DBConnectionString) dbcommand = new oledbDataAdapter _ ("select userID,username,password from users where userName ='"& txtusername.text _ & "' and password = '"& txtPassword1.text _ & "'",dbconn)
OleDbConnection Con=new OleDbConnection("你的连接字符串");
OleDbDataAdapter cmd=new OleDbDataAdapter(SQL,Con);
DataSet ds=new DataSet();
cmd.Fill(ds);
dim DSpageData as new Dataset
DBConn = New OleDbConnection(DBConnectionString)
dbcommand = new oledbDataAdapter _
("select userID,username,password from users where userName ='"& txtusername.text _
& "' and password = '"& txtPassword1.text _
& "'",dbconn)