Hi. I am trying to add new records to an Access 2000 database using VB6.
But I keep getting this 3426 "action cancelled by object" error. I've
updated DAO to 3.6 and checked MSDN. Their code doesn't do anything. Here's
my code. How do I connect to Access 2000 properly and add records without
getting that 3426 error. Thanks in advance.
Dim dbs As Database
Dim rs As DAO.Recordset
Set dbs = DBEngine(0).Ope nDatabase(dFile Name)
Set rs = dbs.OpenRecords et("PCA")
Set Data1.Recordset = rs
CustomerID.Text = CustomerId(1000 )
Data1.Recordset .AddNew
Data1.UpdateRec ord
But I keep getting this 3426 "action cancelled by object" error. I've
updated DAO to 3.6 and checked MSDN. Their code doesn't do anything. Here's
my code. How do I connect to Access 2000 properly and add records without
getting that 3426 error. Thanks in advance.
Dim dbs As Database
Dim rs As DAO.Recordset
Set dbs = DBEngine(0).Ope nDatabase(dFile Name)
Set rs = dbs.OpenRecords et("PCA")
Set Data1.Recordset = rs
CustomerID.Text = CustomerId(1000 )
Data1.Recordset .AddNew
Data1.UpdateRec ord
Comment