Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics 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 January 4th, 2007, 06:00 PM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Writing back to the Database

I am trying to write back to an access database after the dataset is edited. The problem I am having is that it isnt being saved.

 Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click


        Dim cb As OleDb.OleDbCommandBuilder = New OleDb.OleDbCommandBuilder(da)

        da.MissingSchemaAction = MissingSchemaAction.AddWithKey
        da.Fill(ds, "tblKPI")
        ds.Tables("Requests").Rows(inc).Item("Note") = TxtBxNotes.Text
        da.Update(ds, "tblKPI")

        MsgBox(TxtBxNotes.Text)

Help. I have tried many different combinations of code. tblKPI = my table name.
        End Sub







Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing to Database Scripts82 ASP.NET 1.0 and 1.1 Professional 8 September 15th, 2006 07:47 AM
Disabling the BACK button by writing jsp code sumon_24_feb JSP Basics 3 July 14th, 2006 12:41 AM
Writing to Database - Please Help Dwizz VB.NET 2002/2003 Basics 12 May 11th, 2005 08:37 AM
Writing data to database cdenequolo Classic ASP Databases 2 August 17th, 2004 08:00 PM
writing to a database charliejamesuk MySQL 1 March 25th, 2004 11:10 AM





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