Scott
2003-07-14 22:53:14 UTC
Hi,
I'm writing an application using VB6 (sp5), ADO, MDAC 2.6, MSDE 1.0,
Windows98SE. My database was created using MS Access 2000, as a project
(SQL). I wrote a data conversion program and was able to populate the
database with data just fine using SQL statements. For the regular
application, I was planning on using the ADODB recordset update or
updatebatch methods.
My steps:
- I created a recordset just fine using a stored procedure.
- open method is called with a command object, cursor location is
client, cursor type is adopenstatic
- I disconnected the recordset by setting the active connection to nothing.
- Why? To be sure no updates happen 'til I'm ready.
- The user edits the data in textboxes bound to recordset fields.
- The user's edits appear in the recordset.
- To save, I reconnect the recordset by setting the active connection.
- I invoke the update method.
My Problem: The database isn't updated.
Pertinent info:
- The recordset is read/write.
- At this stage I'm working with one record in the recordset.
- I tried the recordset movenext and move methods with no change in
behavior.
- After the update method, the ADO connection errors.count is zero.
Questions:
- Any ideas what's wrong?
- Since it's SQL, am I limited to SQL commands?
- If yes, can I hand a stored procedure a recordset and autoupdate from
it?
Thanks for any help.
- Scott
I'm writing an application using VB6 (sp5), ADO, MDAC 2.6, MSDE 1.0,
Windows98SE. My database was created using MS Access 2000, as a project
(SQL). I wrote a data conversion program and was able to populate the
database with data just fine using SQL statements. For the regular
application, I was planning on using the ADODB recordset update or
updatebatch methods.
My steps:
- I created a recordset just fine using a stored procedure.
- open method is called with a command object, cursor location is
client, cursor type is adopenstatic
- I disconnected the recordset by setting the active connection to nothing.
- Why? To be sure no updates happen 'til I'm ready.
- The user edits the data in textboxes bound to recordset fields.
- The user's edits appear in the recordset.
- To save, I reconnect the recordset by setting the active connection.
- I invoke the update method.
My Problem: The database isn't updated.
Pertinent info:
- The recordset is read/write.
- At this stage I'm working with one record in the recordset.
- I tried the recordset movenext and move methods with no change in
behavior.
- After the update method, the ADO connection errors.count is zero.
Questions:
- Any ideas what's wrong?
- Since it's SQL, am I limited to SQL commands?
- If yes, can I hand a stored procedure a recordset and autoupdate from
it?
Thanks for any help.
- Scott