S
SF
I have a new database link to SQL Server 2000 through ODBC. I am trying to
add new recordset to the underlaying table but receive saying that I should
use dbSeeChanges. But when I change to dbSeeChanges, I receive other error
code 3001. What happens to my code.
Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Dim VarID As Long
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblComplaintBy", dbSeeChanges)
With rst
.AddNew
![cbName_e] = Me.cbName_e
![cbName_k] = Me.cbName_k
![cbAddress] = Me.cbAddress
![cbProvinceID] = Me.cbProvinceID
![cbDistrictID] = Me.cbDistrictID
![cbCommuneID] = Me.cbCommuneID
![cbVillageID] = Me.cbVillageID
![cbPhone] = Me.cbPhone
VarID = rst![CTID]
.Update
End With
SF
add new recordset to the underlaying table but receive saying that I should
use dbSeeChanges. But when I change to dbSeeChanges, I receive other error
code 3001. What happens to my code.
Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Dim VarID As Long
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblComplaintBy", dbSeeChanges)
With rst
.AddNew
![cbName_e] = Me.cbName_e
![cbName_k] = Me.cbName_k
![cbAddress] = Me.cbAddress
![cbProvinceID] = Me.cbProvinceID
![cbDistrictID] = Me.cbDistrictID
![cbCommuneID] = Me.cbCommuneID
![cbVillageID] = Me.cbVillageID
![cbPhone] = Me.cbPhone
VarID = rst![CTID]
.Update
End With
SF