Hi,
I am trying to use ODBC and ASP with a recordset to update a record.
The sql statement I used to create the recordset spans across two tables, that have a one to one relationship (this is created by the foreign key having a unique constraint). They are connected through an inner join in my sql statement.
So I have a record set built from the two tables, and I update all the fields that I want to and it fails when it gets to the recordset.update statement - it says that:
"'Position' is an invalid field" Position is the first field from the second table in the database.
I am using an optimistic lock and adOpenKeyset.
If you have any suggestions on how I can do this (without chucking out ODBC, using a stored proc or combining the tables) I would really appriciate it. I know it sounds daft, but I am using an architecture someone else built.
Thanks,
Ainsley.
I am trying to use ODBC and ASP with a recordset to update a record.
The sql statement I used to create the recordset spans across two tables, that have a one to one relationship (this is created by the foreign key having a unique constraint). They are connected through an inner join in my sql statement.
So I have a record set built from the two tables, and I update all the fields that I want to and it fails when it gets to the recordset.update statement - it says that:
"'Position' is an invalid field" Position is the first field from the second table in the database.
I am using an optimistic lock and adOpenKeyset.
If you have any suggestions on how I can do this (without chucking out ODBC, using a stored proc or combining the tables) I would really appriciate it. I know it sounds daft, but I am using an architecture someone else built.
Thanks,
Ainsley.