Click here to Skip to main content
16,005,169 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# app design Pin
MSBassSinger30-Jul-19 7:33
professionalMSBassSinger30-Jul-19 7:33 
AnswerRe: c# app design Pin
BillWoodruff25-Jul-19 15:10
professionalBillWoodruff25-Jul-19 15:10 
GeneralRe: c# app design Pin
Richard Andrew x6427-Jul-19 3:21
professionalRichard Andrew x6427-Jul-19 3:21 
QuestionCrystel Report in Print Duplicate Page Print Pin
Member 1235167123-Jul-19 0:53
Member 1235167123-Jul-19 0:53 
RantRe: Crystel Report in Print Duplicate Page Print Pin
Richard Deeming23-Jul-19 1:00
mveRichard Deeming23-Jul-19 1:00 
AnswerRe: Crystel Report in Print Duplicate Page Print Pin
OriginalGriff23-Jul-19 4:01
mveOriginalGriff23-Jul-19 4:01 
AnswerRe: Crystel Report in Print Duplicate Page Print Pin
Gerry Schmitz24-Jul-19 6:22
mveGerry Schmitz24-Jul-19 6:22 
QuestionData type mismatch in update query Pin
Member 1326108423-Jul-19 0:07
Member 1326108423-Jul-19 0:07 
Hi I have two queries on a button click. One query inserts a new record in a access database table called Engineering, the other updates an already existing record. They both use the same set of variables which in turn get their values from textboxes on the form. The insert query runs fine. However when I run the update query I get a data type mismatch error. I have checked and rechecked the values to be placed in the database are correct. So I believe that the error is in the syntax of the where clause.

This is the Update query
The where clause gets it's string value 'n' from a textbox on the form called Name_textBox, Which in turn gets it's value from the Name field in the table.

string my_querry = "UPDATE Engineering SET Address = a, Phone = p, Email = em, DateBroughtIn = d, Donation = don, Repair = r, Warranty = war, Type = IT, Make = m, Model = MO, Serial = s, ReportedFault = RF, RepairedBy = i, FaultType = FT, Repaired = Rep, BER = BER, FaultFound = FF, DateTested = DT, DueDate = DueD, TestedBy = TestedBy, ConductorResistance = CPass, CReading = CR, InsulatorResistance = InRes, IReading = IR, EarthLeakage = EarthL, EReading = ER WHERE [Name] ='" + n + "'";

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 
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 

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.