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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Studio
  4. My database gets empty upon restart of my VB.Net application

My database gets empty upon restart of my VB.Net application

Scheduled Pinned Locked Moved Visual Studio
csharpdatabasehelp
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.
  • K Offline
    K Offline
    Kofi Ambrose
    wrote on last edited by
    #1

    Heilllo, I am building an application in VB.net and I'm using MS Access database. The problem is that when I populate the database, all the records get lost after I've run the application. Like, if I insert a record, the record will go to the database alright, but upon the next startup of the application, the records are lost. I realised there was this property "ClearBeforeFill" in the dataset.designer.vb code which had been set to true and I changed its value to false. Yet the problem persists. Can somebody come to my aid. Thanks....

    P T 2 Replies Last reply
    0
    • K Kofi Ambrose

      Heilllo, I am building an application in VB.net and I'm using MS Access database. The problem is that when I populate the database, all the records get lost after I've run the application. Like, if I insert a record, the record will go to the database alright, but upon the next startup of the application, the records are lost. I realised there was this property "ClearBeforeFill" in the dataset.designer.vb code which had been set to true and I changed its value to false. Yet the problem persists. Can somebody come to my aid. Thanks....

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Are you sure the updates are going to the database? You still need to commit the changes from the dataset to the database.

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

      1 Reply Last reply
      0
      • K Kofi Ambrose

        Heilllo, I am building an application in VB.net and I'm using MS Access database. The problem is that when I populate the database, all the records get lost after I've run the application. Like, if I insert a record, the record will go to the database alright, but upon the next startup of the application, the records are lost. I realised there was this property "ClearBeforeFill" in the dataset.designer.vb code which had been set to true and I changed its value to false. Yet the problem persists. Can somebody come to my aid. Thanks....

        T Offline
        T Offline
        TheComputerMan
        wrote on last edited by
        #3

        I am not sure if this will work, but try setting your database up in a specific location. This problem you are experiencing may be caused if you have included the database IN the project. Regards David

        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