ClulessChris
IS-IT--Management
I use the following code trying to update / edit two Access tables:
But as I hit the .Edit i get err: "Object or Database is read only"
I've solved this by editing the tables seperatly, But I thinks to myself there must be a better way. Is there a better way or is this the way it is?
Everybody body is somebodys Nutter.
Code:
Dim db as database
Dim rs as recordset
Dim sSql as string
sSql = "SELECT Feild1, Feild2, tbl2.Feild3 "
"FROM tbl1, tbl2 "
Set db = OpenDatabase(FilePath)
Set rs = db.openrecordset(sSql, dbOpenDynaset)
With rs
.Edit
'Do Stuff
.Update
End With
' Close Connections
I've solved this by editing the tables seperatly, But I thinks to myself there must be a better way. Is there a better way or is this the way it is?
Everybody body is somebodys Nutter.