How to solve “No query in datareader” error?

前端 未结 1 443
花落未央
花落未央 2021-01-28 04:53

Consider the following code :

 answer = today.AddDays(356)
 Dim command1 As New MySqlCommand(\"Insert into UserScanner (Username,Password,Address,Contact,SubStar         


        
1条回答
  •  执笔经年
    2021-01-28 05:34

    You might be missing a With statement here, like With dr1 right after the dr1.Read() line...but I would just change it like this:

    Dim id as Integer = dr1(0)
    Dim Username As String = dr1(1)

    0 讨论(0)
提交回复
热议问题