Click here to Skip to main content
15,900,565 members
Home / Discussions / C#
   

C#

 
QuestionRe: Data type mismatch in update query Pin
Eddy Vluggen23-Jul-19 0:50
professionalEddy Vluggen23-Jul-19 0:50 
AnswerRe: Data type mismatch in update query Pin
Member 1326108423-Jul-19 1:54
Member 1326108423-Jul-19 1:54 
GeneralRe: Data type mismatch in update query Pin
Eddy Vluggen23-Jul-19 2:40
professionalEddy Vluggen23-Jul-19 2:40 
GeneralRe: Data type mismatch in update query Pin
Member 1326108423-Jul-19 2:55
Member 1326108423-Jul-19 2:55 
GeneralRe: Data type mismatch in update query Pin
Eddy Vluggen23-Jul-19 3:00
professionalEddy Vluggen23-Jul-19 3:00 
GeneralRe: Data type mismatch in update query Pin
Member 1326108423-Jul-19 3:31
Member 1326108423-Jul-19 3:31 
GeneralRe: Data type mismatch in update query Pin
Eddy Vluggen23-Jul-19 6:05
professionalEddy Vluggen23-Jul-19 6:05 
GeneralRe: Data type mismatch in update query Pin
Member 1326108423-Jul-19 7:09
Member 1326108423-Jul-19 7:09 
Hi I changed the code back to what you suggested.

I'm not sure how to post the full exception but the error happens when it tries to execute the query
C#
cmd.ExecuteNonQuery();

as soon as it tries to execute this line it jumps to the catch statement which runs a messagebox that gives the exception message. I can do the exception.ToString and screen print it, but I cant find a way to upload the image on this site and it is quite large. However the exception code that I get is 0x80040E10 the rest of the text is, the line after the exception message talks about error handling, next line is talking about the Parameters and not being able to get a result, this is followed by a line talking about behavior followed by a line that talks about ExecuteReaderInternal at ExecuteNonQuery
The exception message that I get is "Parameter r has no default value"
however in the locals window it shows "r false bool"
GeneralRe: Data type mismatch in update query Pin
Member 1326108423-Jul-19 7:48
Member 1326108423-Jul-19 7:48 
GeneralRe: Data type mismatch in update query Pin
Eddy Vluggen24-Jul-19 0:10
professionalEddy Vluggen24-Jul-19 0:10 
AnswerRe: Data type mismatch in update query Pin
Luc Pattyn23-Jul-19 7:44
sitebuilderLuc Pattyn23-Jul-19 7:44 
QuestionThis is a style question regarding partial classes Pin
honey the codewitch20-Jul-19 10:40
mvahoney the codewitch20-Jul-19 10:40 
AnswerRe: This is a style question regarding partial classes Pin
BillWoodruff20-Jul-19 11:04
professionalBillWoodruff20-Jul-19 11:04 
GeneralRe: This is a style question regarding partial classes Pin
honey the codewitch20-Jul-19 11:07
mvahoney the codewitch20-Jul-19 11:07 
GeneralRe: This is a style question regarding partial classes Pin
BillWoodruff20-Jul-19 17:53
professionalBillWoodruff20-Jul-19 17:53 
GeneralRe: This is a style question regarding partial classes Pin
honey the codewitch20-Jul-19 18:10
mvahoney the codewitch20-Jul-19 18:10 
GeneralRe: This is a style question regarding partial classes Pin
#realJSOP21-Jul-19 3:35
professional#realJSOP21-Jul-19 3:35 
AnswerRe: This is a style question regarding partial classes Pin
Bernhard Hiller21-Jul-19 20:54
Bernhard Hiller21-Jul-19 20:54 
GeneralRe: This is a style question regarding partial classes Pin
honey the codewitch21-Jul-19 21:05
mvahoney the codewitch21-Jul-19 21:05 
GeneralRe: This is a style question regarding partial classes Pin
Bernhard Hiller21-Jul-19 21:35
Bernhard Hiller21-Jul-19 21:35 
GeneralRe: This is a style question regarding partial classes Pin
honey the codewitch21-Jul-19 21:40
mvahoney the codewitch21-Jul-19 21:40 
Questionhow to read data type in excel Pin
rs1919-Jul-19 6:54
rs1919-Jul-19 6:54 
AnswerRe: C# Pin
Dave Kreskowiak19-Jul-19 8:14
mveDave Kreskowiak19-Jul-19 8:14 
GeneralRe: C# Pin
rs1919-Jul-19 9:38
rs1919-Jul-19 9:38 
GeneralRe: C# Pin
Dave Kreskowiak19-Jul-19 9:49
mveDave Kreskowiak19-Jul-19 9:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.