Wrox Programmer Forums
|
Visual Basic 2008 Essentials If you are new to Visual Basic programming with version 2008, this is the place to start your questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2008 Essentials 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 26th, 2011, 01:12 AM
Registered User
 
Join Date: Dec 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Updating access database

Hi all, I am new in this forum but would love you to help me out here. I am writing an applcation to receive data from the serial port and save it to an access database. All the other aspect is workng well, but getting to update the database is where I am having problem. the section of the code for my database is here, please help me out.


Dim tempData As DataTable
tempData = Temp_DataDataSet.Tables("LoggerTable")

Dim tempCurrent As DataRow
' Obtain a new DataRow object from the DataTable.
tempCurrent = tblAuthors.NewRow()

' Set the DataRow field values as necessary.
tempCurrent("Date_And_Time") = Date.Now
tempCurrent("Temperature") = final_temp

'Pass that new object into the Add method of the DataTable.Rows collection.
tblAuthors.Rows.Add(tempCurrent)
OleDbDataAdapter1.Update(Temp_DataDataSet, "LoggerTable")
MsgBox("Add was successful.")


The problem is with that 2nd to the last line; the exception being thrown is "Parameter ?_1 has no default value."

Thanks for your help





Similar Threads
Thread Thread Starter Forum Replies Last Post
difficulty updating my access database with asp zeeman ASP.NET 3.5 Basics 1 January 17th, 2009 02:53 AM
Updating a gridview control w/access database p3aul ASP.NET 1.0 and 1.1 Professional 0 October 2nd, 2007 06:14 PM
Problem Updating MS Access database javlet Java Databases 1 April 24th, 2007 07:16 AM
updating yes/no field in MS Access database enigma82 Classic ASP Databases 2 May 6th, 2005 11:04 AM
Updating from no access database penta Access 12 October 27th, 2004 05:06 AM





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