G
Guest
When setting parameters, I get the error:
System.IndexOutOfRangeException: Invalid index -1
With Me.MySqlCommand1
.Parameters("@FileName").Value = sFileName
.ExecuteNonQuery()
End With
The insert statement is:
INSERT INTO management (FileName) VALUES (@FileName)
Any ideas what's gone wrong?
System.IndexOutOfRangeException: Invalid index -1
With Me.MySqlCommand1
.Parameters("@FileName").Value = sFileName
.ExecuteNonQuery()
End With
The insert statement is:
INSERT INTO management (FileName) VALUES (@FileName)
Any ideas what's gone wrong?