E
Elmo Watson
The date format in the 'weekending' textbox is 5/5/2007
Here's what I've got:
With cmd.Parameters
..Add(New SqlParameter("@SQLweekending", SqlDbType.DateTime,
weekending.Text))
the error message is:
"Conversion from string "4/8/2007" to type 'Integer' is not valid."
Then, I tried:
..Add(New SqlParameter("@SQLweekending", SqlDbType.DateTime,
CDate(weekending.Text)))
but, before I even tried it, it gave me a blue squiggly line, with an error
message:
"Error 2 Value of type 'Date' cannot be converted to 'Integer'"
How can I get this to work?
Here's what I've got:
With cmd.Parameters
..Add(New SqlParameter("@SQLweekending", SqlDbType.DateTime,
weekending.Text))
the error message is:
"Conversion from string "4/8/2007" to type 'Integer' is not valid."
Then, I tried:
..Add(New SqlParameter("@SQLweekending", SqlDbType.DateTime,
CDate(weekending.Text)))
but, before I even tried it, it gave me a blue squiggly line, with an error
message:
"Error 2 Value of type 'Date' cannot be converted to 'Integer'"
How can I get this to work?