G
Guest
The msgbox shows the correct data, but the table is not updated. I'm totally lost. Any ideas?
Dim db As Database
Dim rs As Recordset
Set db = DBEngine.Workspaces(0).Databases(0)
Set rs = db.OpenRecordset("tblUserOptions")
rs.MoveFirst
MsgBox "updating " & rs("User_Name") & " to " & strUser
rs("User_Name") = strUser
rs.Update
rs.Close
Set rs = Nothing
db.Close
Set db = Nothing
Dim db As Database
Dim rs As Recordset
Set db = DBEngine.Workspaces(0).Databases(0)
Set rs = db.OpenRecordset("tblUserOptions")
rs.MoveFirst
MsgBox "updating " & rs("User_Name") & " to " & strUser
rs("User_Name") = strUser
rs.Update
rs.Close
Set rs = Nothing
db.Close
Set db = Nothing