السلام عليكم
عندي مشكلة في هذه الجملة و لكن لا أعرف بالضبط هذه المشكلة
Line 49: cmd = New OleDbCommand("Update PollAnswer set PollCount=PollCount+1 where PollAnsID=" & Lstpoll.SelectedValue & " and POllId=" & CInt(TextBox2.Text), Conn)
Line 50: Conn.Open()
Line 51: cmd.ExecuteNonQuery()
Line 52: Conn.Close()
المشكلة اهي
Syntax error (missing operator) in query expression 'PollAnsID= and POllId=24'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Syntax error (missing operator) in query expression 'PollAnsID= and POllId=24'.
Source Error: