Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 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 21st, 2004, 11:37 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error Message

Please can you tell me what this means??????

An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in microsoft.visualbasic.dll

Thanks for the help
Louisa

 
Old January 21st, 2004, 11:55 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

It would appear you have encounted an exception from an OleDb command. Can you provide more detail?

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old January 21st, 2004, 12:13 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am trying to add a new record into a access database, which I have succeeded in doing, but now I would like to be able to add a record to a table that a primary key. So I am trying increment my primary key by one and then add the rest of the records details but I am coming up with that error message. The primary key is an integer.

IntMax = DataMax.Tables(0).Rows(0).Item(0) + 1
        ItemRow("ItemId") = IntMax
        ItemRow("Type") = ComboType.Text
        TblItems.Rows.Add(ItemRow)
        Dim objcommandbuilder As New OleDb.OleDbCommandBuilder(Itemsadapter)
        Itemsadapter.Update(DataItemAll, "Items")

Thanks
Louisa



 
Old January 21st, 2004, 12:41 PM
Authorized User
 
Join Date: Dec 2003
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In your table design, is the primary key set to auto-count (this is typically a default)

If so, trying to override that could be causing the error

John

 
Old January 22nd, 2004, 04:41 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No it is not an autocount, just a long integer.

Louisa






Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the error message for a 500 server error? chobo2 C# 2005 1 May 4th, 2008 03:11 AM
Where does the error message go? Wei Wang BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 March 13th, 2006 02:03 PM
Error Message alannoble26 Excel VBA 4 November 25th, 2005 11:20 AM
error message. Tasha Access VBA 2 August 11th, 2004 11:07 PM
Help with Error message mariakovacs Classic ASP Databases 3 October 10th, 2003 03:59 PM





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