Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 2nd, 2007, 12:51 PM
Registered User
 
Join Date: Dec 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Updating databases with VB 2005 Express

Hi, I'm having trouble getting a database to keep changes made to it. As a starting point, I'm using the help "to do this" screens, and am following the instructions given. All is well until the test database created by the instructions is to be saved by clicking on the icon. No error messages appear, but the database doesn't update either. When I restart the project, the datagrid shows only the data prior to the update.

There must be something simple wrong, but I can't get a handle on it. There's no sense for me to start developing the code I really want to work on until the machine can write a database to begin with.

Thanks, Pat Ciferri

 
Old December 2nd, 2007, 04:52 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Hi there.. are you using a transaction???

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old December 3rd, 2007, 12:44 AM
Registered User
 
Join Date: Dec 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Gonzalo, thanks for the reply.

I'm an amateur radio operator, and I want to write a program that will allow me to keep track of the contacts I make during contests. I had tried to do that, but couldn't make my database changes work.

Before I spent lots of time on that, I decided to test the machine by stepping through the "how to" screens to make sure it can write, read, and update a sample table. Everything goes just as the "how to" topics says they should. Part of that sequence is to create and populate a table using the built in database creation program. But, when the instructions call for updating the sample table via a .Net program containing a datagrid, the data can be changed on the screen, but doesn't get updated when saved.

In regards to your question, I'm not doing a transaction, or for that matter, writing any code as part of the "how to" instructions.
It has to be something very simple, but I've checked everything I can think of, and even had a fellow from work who maintains our network and servers look at it, but even he can't figure it out. I'd be very interested in any insights you might have.

Thanks, Pat


 
Old December 3rd, 2007, 08:31 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

ok.. are you doing a desktop application?? ( i think so but i have to check). What database are you using?? is inside your project?? if you have your database in a data folder, VB will copy it every time you run the project, so you will lost changes every time you try it... maybe that is happening to you?

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use access 2007 databases in vb 2005? Richard C. McAdams BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 2 June 16th, 2008 11:48 AM
VB 2005 Express Starter Kit krawdad Visual Basic 2005 Basics 0 May 5th, 2006 10:32 AM
VB 2005 Express question VBandT Visual Basic 2005 Basics 1 March 3rd, 2006 03:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.