T
Tom
I need to write data to two tables, but when "setting" the BOM table I get
the following error:
"You must use the dbseechanges option with openRecordset when accessing a
SQL Server table that has an Idenitity column."
What does this mean and how do I fix it?
What can i read to further explain the error. (someplace within Access
Language reference?)
Dim MyTable As Recordset
Dim BomTbl As Recordset
Dim MyDB As Database
Dim PNHolder As String
Dim AsyPN As String
Set MyDB = CurrentDb()
Set MyTable = MyDB.OpenRecordset("Products")
Set BomTbl = MyDB.OpenRecordset("Bom") <-- error spot
MyTable.AddNew
MyTable![PartNumber] = PNHolder & "-001"
MyTable![DesignerName] = [SelectDesigner]
MyTable![Status] = "-1"
mytable update
BomTbl.AddNew
BomTbl![PartNumber] = PNHolder & "-001"
BomTbl![DesignerName] = [SelectDesigner]
BomTbl![Status] = "-1"
Bomtable update
MyDB.close
Thanks
Tom
the following error:
"You must use the dbseechanges option with openRecordset when accessing a
SQL Server table that has an Idenitity column."
What does this mean and how do I fix it?
What can i read to further explain the error. (someplace within Access
Language reference?)
Dim MyTable As Recordset
Dim BomTbl As Recordset
Dim MyDB As Database
Dim PNHolder As String
Dim AsyPN As String
Set MyDB = CurrentDb()
Set MyTable = MyDB.OpenRecordset("Products")
Set BomTbl = MyDB.OpenRecordset("Bom") <-- error spot
MyTable.AddNew
MyTable![PartNumber] = PNHolder & "-001"
MyTable![DesignerName] = [SelectDesigner]
MyTable![Status] = "-1"
mytable update
BomTbl.AddNew
BomTbl![PartNumber] = PNHolder & "-001"
BomTbl![DesignerName] = [SelectDesigner]
BomTbl![Status] = "-1"
Bomtable update
MyDB.close
Thanks
Tom