Delete Data
-
Hi, I want to delete data from datbase by entering a year in text box. If the there no data then i want to show "the selected date does not exist". How can i do this? pls help me? Please write code here........................
ExecuteNonQuery returns the number of rows affected, test for 0.
-
Hi, I want to delete data from datbase by entering a year in text box. If the there no data then i want to show "the selected date does not exist". How can i do this? pls help me? Please write code here........................
First, this is the wrong forum for this question. Second, you didn't specify what language you were using. Third, noone is going to write this code for you. You have to write the code yourself to show that you, at least, attempted to do something. When you have specific questions, then we can help. But, from the sounds of your question, you don't even know what the SQL statement would be to delete a record, let alone write the code to execute it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007