لدي جدولان مترابطان في قاعدة البيانات واريد ان احذف سجل من كل منهما واستخدمت هذا الكود ..
' Set the Command object properties...
objCommand.Connection = cn
objCommand.CommandText = "DELETE FROM thebank " & _
"WHERE id = ?;" & _
"DELETE FROM Data WHERE id = ?;"
' Parameter for the title_id field...
objCommand.Parameters.AddWithValue _
("?", BindingContext(MyDataView).Current("id"))
' Open the database connection...
cn.Open()
' Execute the SqlCommand object to update the data...
objCommand.ExecuteNonQuery()
' Close the connection...
cn.Close()ولكن اواجه هذه المشكلة ( تم العثور على احرف بعد نهاية عبارة SQL )
ولا يتم تنفيذ امر الحذف .