using a stored query to insert and getting data type mismatch when using vb.net now() to populate an access date/time field?
the error message, 5 - Data type mismatch in criteria expression.
the query, INSERT INTO behaveapps ( applicationDate, firstName, lastName )
SELECT ? AS Expr1, ? AS Expr2, ? AS Expr3;
the asp code,
Using command As New system.Data.OleDb.OleDbCommand("apptestinsert", db)
'Set the commandtype
command.CommandType = Data.CommandType.StoredProcedure
'Specify the parameters
command.Parameters.AddWithValue("applicationDate", Now())
command.Parameters.AddWithValue("firstname", firstName.Text)
command.Parameters.AddWithValue("lastname", lastName.Text)
the error message, 5 - Data type mismatch in criteria expression.
the query, INSERT INTO behaveapps ( applicationDate, firstName, lastName )
SELECT ? AS Expr1, ? AS Expr2, ? AS Expr3;
the asp code,
Using command As New system.Data.OleDb.OleDbCommand("apptestinsert", db)
'Set the commandtype
command.CommandType = Data.CommandType.StoredProcedure
'Specify the parameters
command.Parameters.AddWithValue("applicationDate", Now())
command.Parameters.AddWithValue("firstname", firstName.Text)
command.Parameters.AddWithValue("lastname", lastName.Text)