Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Delete Data

Delete Data

Scheduled Pinned Locked Moved IT & Infrastructure
questionhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nishad85
    wrote on last edited by
    #1

    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........................

    P D 2 Replies Last reply
    0
    • N Nishad85

      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........................

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      ExecuteNonQuery returns the number of rows affected, test for 0.

      1 Reply Last reply
      0
      • N Nishad85

        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........................

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups