An unhandled exception of type 'System.IndexOutOfRangeException' occurred in system.data.dll

Additional information: An OleDbParameter with ParameterName 'LoginName' is not contained by this OleDbParameterCollection.

Here is the code that created the errors

'open data connecttion and set up the SQL query
OleDbConnection1.Open()
OleDbCommand1.CommandText = "SELECT Users.* FROM Users WHERE (LoginName = ?) AND (LoginPassword = ?)"

'Press the Value to the SQL query
OleDbCommand1.Parameters("LoginName").Value = Me.LoginTxt.Text
OleDbCommand1.Parameters("LoginPassword").Value = Me.PasswordTxt.Text

i = OleDbCommand1.ExecuteScalar