Derp I`ve been coding for 10 hours and my brain hurts
The code below gives me Syntax error in Update Statement
ISBN Year of purchase Book Number are integers rest are strings
Do I have to cast from the string of the textbox to an integer?
The code below gives me Syntax error in Update Statement
ISBN Year of purchase Book Number are integers rest are strings
Do I have to cast from the string of the textbox to an integer?
Quote:
UpdateCommand.CommandText = "Update TblBook Set [Shelf_Number] =" + uShelfNoTxt.Text &
", ISBN =" + uIsbnTxt.Text &
", Author =" + uAuthorTxt.Text &
", Title =" + uTitleTxt.Text &
", Syllabus =" + uSyllabusTxt.Text &
", Genre =" + uGenreTxt.Text &
", Description =" + uDescriptionTxt.Text &
", YearOfPurchase =" + uYearOfPurchaseTxt.Text &
", WHERE(Book_Number =" + uBookNoTxt.Text + ")"
", ISBN =" + uIsbnTxt.Text &
", Author =" + uAuthorTxt.Text &
", Title =" + uTitleTxt.Text &
", Syllabus =" + uSyllabusTxt.Text &
", Genre =" + uGenreTxt.Text &
", Description =" + uDescriptionTxt.Text &
", YearOfPurchase =" + uYearOfPurchaseTxt.Text &
", WHERE(Book_Number =" + uBookNoTxt.Text + ")"






