Jump to content
Tim Legate

Delphi not recognizing that a field exists

Recommended Posts

I am writing code to copy data from a msAccess table to an IB table. For some reason, the system can find most of the fields, but cannot find two of them and I cannot understand why...

It does not find field "FN" or "CONADDED" in the fdToTable. I cannot see a reason that these two fields are any different than the others.

Any advice would be appreciated. (Using 10.4 Community Edition Of Delphi and InterBase 14.0.0.501)

tFromFields.jpg

fdToTableFields.jpg

CodeSnippit.jpg

Exception.jpg

Share this post


Link to post

And what why? We can't see your computer.

It seems to me that you have flipped the tables with Conadded.

Share this post


Link to post
3 hours ago, Tim Legate said:

my bad - you are correct.

I still need to know why...

Column LN does not exist in fdToTable.

 

It may exist in your database but it's not in the table objects field collection.

Edited by weirdo12

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×