wrong query....
Insert into ... with
where condition is
wrong
OleDbCommand cmd = new OleDbCommand("Insert into SlideShowTable(ImageName,Description) values(@ImageName,@Description) where CategoryID='" + txtcat.Text + "'And ArName='" + txtarea.Text + "' ", con);
syntax is
Insert into tblnm(column list...) values(value list...)
Happy Coding!
:)