good morning folks,
I have the following code written on my front end form in the on load event and for some reason when a particular user opens up the database an error message appears saying read only access, and the Rs.AddNew is highlighted, but it doesn't happen for any of my other users!
'Get the user login ID on logging onto the database and record it in the tblUserLoginID table
Dim Rs As DAO.Recordset
Set Rs = CurrentDb.OpenRecordset("tblUserLoginID")
Rs.AddNew
Rs.Fields("strUserLoginID").Value = Environ("Username")
Rs.Update
Rs.MoveFirst
DoEvents
Rs.MoveLast
Rs.Close
Set Rs = Nothing
Any ideas on why this is the case, because the user is set up the same as the other users.
Thanks in advance
I have the following code written on my front end form in the on load event and for some reason when a particular user opens up the database an error message appears saying read only access, and the Rs.AddNew is highlighted, but it doesn't happen for any of my other users!
'Get the user login ID on logging onto the database and record it in the tblUserLoginID table
Dim Rs As DAO.Recordset
Set Rs = CurrentDb.OpenRecordset("tblUserLoginID")
Rs.AddNew
Rs.Fields("strUserLoginID").Value = Environ("Username")
Rs.Update
Rs.MoveFirst
DoEvents
Rs.MoveLast
Rs.Close
Set Rs = Nothing
Any ideas on why this is the case, because the user is set up the same as the other users.
Thanks in advance