Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access-Vb6 Connectivity

Status
Not open for further replies.

Omkar158

Programmer
Jul 28, 2003
6
IN
Hi friends,
I am using access as backend & vb6 as frontend. i want to delete the record useing adodc recordset but it will throw error at time of deletion.
Can anybody help me.

 
try using a connection instead of a recordset:

Set CN = CreateObject("ADODB.Connection")
CN.Open ConnectionString ' Where ConnectionString is your connection string
SQL = "DELETE FROM MyTable WHERE MyField='Delete Me'"
CN.Execute SQL
CN.Close
Set CN = Nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top