Jump to content

im having problem with vb6


Recommended Posts

hi everyone, im creating my school project(bookstore system) using vb6 and MS access... i entered the data using add member form. After saved, the new created data can be display but after exit the program and login again, the data will automatically disappear..... then i ask my friend.. they said need to close the database...so can anyone tell me how and where to add the close database command??? please...

Edited by alan8311
Link to comment
Share on other sites


Are you using DAO recordset ?

If so, after adding data, you need to update the recordset and then close it.

If you don't update, the new data will be lost.

The end of Access table edits should look like this...

rst.Update
rst.Close
set rst = Nothing

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...