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 July 19th, 2006, 07:34 PM
Registered User
 
Join Date: Jul 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default VSTO Update database

I am having a problem trying to undate a Dataset in Excel to an Access data base. I am using VSTO 2005 with office 2003. This is the code I am trying to use but it errors and tells me that Validate and Update are not a member of Workbook.sheet1 Sheet1 is where I have the button. Obviously I am missing something but being I am a VBA guy trying to learn .net I am having some problems.

Thanks for any help.
Tom Hallmark

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

        Try
            Me.Validate()
            Me.TRgraphBindingSource.EndEdit()
            Me.TRgraphTableAdapter.Update(Me.TRgraphDBDataSet. TRgraph)
            MsgBox("Update successful")

        Catch ex As Exception
            MsgBox("Update failed")
        End Try
    End Sub





Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I UPDATE database? zoltac007 ASP.NET 2.0 Basics 1 July 25th, 2007 03:24 PM
Why can I not update my database? fazzou Access 5 November 16th, 2006 11:13 AM
VSTO Update database T Hallmark Visual Basic 2005 Basics 2 July 20th, 2006 06:27 PM
VSTO Update database T Hallmark VS.NET 2002/2003 0 July 17th, 2006 10:14 PM





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