Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Invalid Object Name 'New'

Author  Topic 

GrantMason
Starting Member

7 Posts

Posted - 2001-12-29 : 10:55:33
Hi - I wonder if anyone can help please.

I am getting the error message INVALID OBJECT NAME 'NEW' whenever I try to add a record via a query or form that has fields in it from more than one table. Have tried various options but no success - can anyone help?

I am using SQL server 2000 back end with Access 2002 front end.

Thanks.

Grant Mason



Nazim
A custom title

1408 Posts

Posted - 2001-12-29 : 11:04:05
the Error says you dont have a object named 'new' ,in your case table named new. you are trying to add a record in this table which isnt in your database. check your table name properly and check whether it exists in the database.

btw, to proper naming convention to any object is databasename.username.objectname

HTH

-------------------------
Graz's Baby is my Master:)
Go to Top of Page

GrantMason
Starting Member

7 Posts

Posted - 2001-12-29 : 12:13:51
Thanks for your reply.

This problems occurs whatever tables I use and I make no reference to a table or object with 'new' in its name at all. It only happens when I try to add a record to a table via a query with two or more joined table, and not with a query with only one table.

Here is one example, from a table that logs telephone calls that references the 'For' field to a second table of User Information.

SELECT dbo.[Telephone Log].*, dbo.Users.*
FROM dbo.[Telephone Log] INNER JOIN
dbo.Users ON dbo.[Telephone Log].[For] = dbo.Users.UserID

Perhaps you can figure out what I'm doing wrong from this.

Thanks again.
Grant Mason



Go to Top of Page

Nazim
A custom title

1408 Posts

Posted - 2001-12-29 : 23:56:57
Hi Grant,

can you provide the code you are writing for inserting you records. might be we could find something from it.

btw ,do u have proper right's on the tables u r using? . check that too.


-------------------------
Graz's Baby is my Master:)
Go to Top of Page
   

- Advertisement -