Click here to Skip to main content
16,004,686 members

Comments by Scribling Doodle (Top 150 by date)

Scribling Doodle 23-Jun-17 8:57am View    
It's already inside a TryCatch clause. It simply says "String was not recognized as a valid DateTime"
Scribling Doodle 13-Jun-17 9:45am View    
If you can read correctly there is a problem very well explicit. Even done the tables so all people could understand what do I want. Thanks anyway but problem was fixed by Griff.
Scribling Doodle 9-Jun-17 12:15pm View    
That's the next step as I said in the comments. I start always this way so I can imagine my database while reading the code. Instead of reading tonnes of AddwitValues beneath it... It's simpler to read and more vulnerable yes. I will create the parameterized query now since It's all going great now.
Scribling Doodle 9-Jun-17 11:42am View    
Still the same error regarding the double value. Both comboboxes are suposed to give me a single number. Actually I have a table called Motive that has an ID for every motive.
Scribling Doodle 9-Jun-17 11:39am View    
I do this everytime because it's easier for me to understand the query... After that, I start creating the parameterized queries using cmd.AddWithValue("@1", cmbMotive.SelectedValue). I'll try to follow your steps and reach back to you with the result. Thanks in advance!