cyberbiker
Programmer
I am using VB6 ADO and SQL Server 7
Most of my tables are set up pretty much the same with
with columns like ID,name , address, etc.
ID is an intendity field
Then I have tables where the rows are like ID,notes or similar.
I am creating recordsets with select statements similar to
Select tblA *, tblB.notes from tblA left outer join tblB
on tblB.id = tblA.id
When I use the recordset.addnew method my update fails. It appears to me that the identity field is not actually created in SQL Server when adding new records until the update occurs since I am trying to insert a null value into tblB's ID field thus causing update to fail.
As I expected if I attempt to requery the recordset, the requery failsI Additionally a RS.Move 0 fails
Thes recordsets may often be empty except for the new record that I am adding
I am using client side cursors and bound controls
Any ideas will be appreciated.
Terry (cyberbiker)
Most of my tables are set up pretty much the same with
with columns like ID,name , address, etc.
ID is an intendity field
Then I have tables where the rows are like ID,notes or similar.
I am creating recordsets with select statements similar to
Select tblA *, tblB.notes from tblA left outer join tblB
on tblB.id = tblA.id
When I use the recordset.addnew method my update fails. It appears to me that the identity field is not actually created in SQL Server when adding new records until the update occurs since I am trying to insert a null value into tblB's ID field thus causing update to fail.
As I expected if I attempt to requery the recordset, the requery failsI Additionally a RS.Move 0 fails
Thes recordsets may often be empty except for the new record that I am adding
I am using client side cursors and bound controls
Any ideas will be appreciated.
Terry (cyberbiker)