That is because you have not set the CommandText for oCmd_Update
You have set the following only
andCode:oCmd_Select.CommandText = sSQL
Code:Using cmd As OleDbCommand = New OleDbCommand cmd.CommandText = _ <SQL> UPDATE CUSTOMER set Surname = ?, Given = ?, DateOfBirth = ?, Sex = ?, Phone = ?, Address = ?, Suburb = ?, State = ?, PostCode = ? WHERE ID = ? </SQL>.Value





Reply With Quote