Q:VB6 ADO and ACCESS 2000 db 
Author Message
 Q:VB6 ADO and ACCESS 2000 db

Hello

I use DELETE FROM SQL command and the record is deleted but ADO data control
doesn't show this after requery. Only after I reload the form it is ok. Any
clues?

Code example:
        cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
            "Data Source=c:\db\db.mdb;"
        cSqlExec = " DELETE * FROM table " + _
            " where " + _
            " id = '" + DataList1.Text + "' and " + _
            " [year] = " + DataList2.Text + " and " + _
            " [month] = " + DataList3.Text + ";"
        cnn.Execute cSqlExec

        Adodc1.Recordset.Requery
Code example ends.

best regards
--
Andres Jatsa
GSM   +372 56 463643



Thu, 12 Sep 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Convert Access 97 db to Access 2000 db in VB6

2. VB6, ADO, and writing to an Access 2000 db with user level security

3. display chinese using DAO 3.6/VB6 in accessing Access 2000 DB.

4. Can't access db in Access 2000 using ADO

5. accessing Access 2000 Report using VB6 ADO

6. VB6 and access 2000 DB

7. Two Access 2000 db's on one VB6 form

8. VB6 Data Form Wizard w/ Access 2000 DB

9. How to pass a parameter from VB6 to CR7 , DB MS Access 2000

10. Compact Access 2000 DB with VB6 Code

11. ADO Passwords for Access 2000 db's

12. error messages reported by OLE DB /ADO with Access 2000 database at an internet server

 

 
Powered by phpBB® Forum Software