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 April 12th, 2007, 09:18 PM
Registered User
 
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default invalid object name 'Groups'

Hi, everyone ,im a beginer on VB 2005, so i downloaded the samples from this book but i have a problem with the chapter 8 , in the migration tool a error message is showed when i press groups or projects button
the error is "Invalid Object Name 'Groups'", so if anyone can help me,
i will tank you.Tanks
 
Old April 13th, 2007, 02:02 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

From what book?
Though this site is hosted by WROX, those who participate are just individuals around the planet--we don't all have access to all WROX books.

What is it that you are doing, and where does the error occur? (Presume we know nothing of what you are trying to do; spell it out.)
 
Old April 13th, 2007, 04:57 PM
Registered User
 
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok this is the page of the book http://www.wrox.com/WileyCDA/WroxTit...load_code.html
and the codes to download.
in the chapter 8 on that codes ,there is code that create a migration tool program,for migrate from access databases to SQL databases , but when i press a button that migrates a table of an access database, i have a message error "Invalid Object Name 'Groups'", it looks like the error is on the line that execute a query for insert the data already readed, on a SQL database, the line is "objData.Command.ExecuteNonQuery()" and the Query is "INSERT INTO Groups("GroupID,GroupName,GroupDescription,LastUpd ateDate)VALUES(?,?,?,?)"
So if you download the codes , and try the code from chapter 8 "Migration tool",youll see more detailed the error. tanks for your help .
 
Old April 16th, 2007, 01:59 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

The SQL you posted assumes there is a table or view named "Groups." It sounds as if the database you are using either does not have such a table, or the code you are writing does not have access to that table.

(By the way, ‘code’ is stuff, not an object. Syaing things like ‘the codes to download’ is akin to saying ‘the airs I am breathing...’ Just a tip.)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid Object Name "Groups" Charlie05 VB Databases Basics 4 April 14th, 2007 10:54 AM
"Invalid object format name" Error welles Crystal Reports 2 September 27th, 2006 04:42 AM
Invalid Object Name busybee ASP.NET 1.0 and 1.1 Professional 1 July 5th, 2006 11:13 PM
Invalid object name Syed Naveed Khursheed BOOK: Beginning ASP 3.0 8 November 20th, 2004 01:42 AM
VBA access to object groups roog Access VBA 0 June 9th, 2004 05:01 AM





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