Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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 September 5th, 2006, 10:59 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default Invalid Column Name error when saving record

Okay, here goes:

I have a database with the following tables and pertinent columns that I am connecting to using an Access data project file:

Employee
EmployeeID - PK
...

CycleOwner
CycleID - PK
EmployeeID - FK
ProcessID - FK
...

Process
ProcessID - PK
...

SubProcess
SubProcessID - PK
ProcessID - FK
...

ControlActivity
ControlActID - PK
SubProcessID - FK
(2 look ups to Employee ID for other reasons)

When I try to create a record in the ControlActivity table, I get an error that ProcessID is an invalid column name. When I create the record in ControlActivity, I select a SubProcessID, which is already related to a ProcessID back in the SubProcess table, but there is no look up to ProcessID in the ControlActivity table.

Any ideas?

Thanks,




mmcdonal
__________________
mmcdonal

Look it up at: http://wrox.books24x7.com
 
Old September 5th, 2006, 12:37 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Quote:
quote:Originally posted by mmcdonal

When I try to create a record in the ControlActivity table, I get an error that ProcessID is an invalid column name. When I create the record in ControlActivity, I select a SubProcessID, which is already related to a ProcessID back in the SubProcess table, but there is no look up to ProcessID in the ControlActivity table.
Just to clarify, you are only dealing with the controlActivity table, e.g. the problem is occuring when you insert data into the controlActivity table?

"The one language all programmers understand is profanity."
 
Old September 5th, 2006, 12:42 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Just the control activity table.

I recreated the table and after dropping the relationships on the old one and dropping the table, I was able to connect the new one and get everything to work. I would like to avoid that next time if you have any suggestions.

Thanks.

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
alter add puzzle: Invalid column name JL1024 SQL Server 2000 11 June 11th, 2013 04:59 PM
invalid column length message cronid SQL Server DTS 3 August 5th, 2006 12:49 PM
Invalid TLV record piyush_ppf BOOK: Beginning ASP 3.0 0 June 9th, 2006 09:20 AM
problem with Invalid column name 'TX'. bleutiger Classic ASP Databases 1 February 1st, 2005 02:35 PM
Invalid Casting for Null column using ODBC rusli ADO.NET 3 December 17th, 2004 06:32 PM





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