Consider the following code :
answer = today.AddDays(356) Dim command1 As New MySqlCommand(\"Insert into UserScanner (Username,Password,Address,Contact,SubStar
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:
With
With dr1
dr1.Read()
Dim id as Integer = dr1(0) Dim Username As String = dr1(1)
Dim id as Integer = dr1(0)
Dim Username As String = dr1(1)