S
SF
I have just upsize my backend to SQL Server 2005. I have reconnected my
front end to SQL Server thru ODBC connection. While trying to add new
record, I received the Runtime Error 3146.
Dim varObjectid As Long
Dim dbs As DAO.Database
Dim rstObject As DAO.Recordset
Set dbs = CurrentDb
Set rstObject = dbs.OpenRecordset("SELECT * FROM tblObjects",
dbOpenDynaset, dbSeeChanges)
rstObject.AddNew
rstObject![DateCreated] = Now()
rstObject![CreatedBy] = CurrentUser()
rstObject![DateUpdate] = Now()
rstObject![Owner] = CurrentUser()
rstObject![Pc_Name] = ComputerName
rstObject.Update
rstObject.Bookmark = rstObject.LastModified
varObjectid = rstObject![Ob_ObjectID]
rstObject.Close
front end to SQL Server thru ODBC connection. While trying to add new
record, I received the Runtime Error 3146.
Dim varObjectid As Long
Dim dbs As DAO.Database
Dim rstObject As DAO.Recordset
Set dbs = CurrentDb
Set rstObject = dbs.OpenRecordset("SELECT * FROM tblObjects",
dbOpenDynaset, dbSeeChanges)
rstObject.AddNew
rstObject![DateCreated] = Now()
rstObject![CreatedBy] = CurrentUser()
rstObject![DateUpdate] = Now()
rstObject![Owner] = CurrentUser()
rstObject![Pc_Name] = ComputerName
rstObject.Update
rstObject.Bookmark = rstObject.LastModified
varObjectid = rstObject![Ob_ObjectID]
rstObject.Close