General information
Category:
COM/DCOM and OLE Automation
>I need call requery for get the new Id from sql server. IN Sql, the identity and custom-generated codes is generated. Resync not work in this case. I try using static,dynamic,etc... cusrsor and the only way for get is is call requery.
>
>
>Obvious, this is done in the server. The recordset is passed to the server and i use requey for get the new data.
>
>However, if exist other way... i'm looking a lot but nothing work.
>
>NOTE: I use this for edit student related information...
Requery is not the only way to get at the data. What Requery does is a simple Close and Open of the RS. If Requery is failing for you just replace with Close and Open method calls.
Have you tried making the changes to the code in your initial post? I didn't see a Requery in that piece.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only