Hi I have this code
Function replace()
Dim Rs As DAO.Recordset
Set Rs = CurrentDb.OpenRecordset("Plaistow Primary School")
Do Until Rs.EOF
Rs.Edit
Rs("Job Details") = replace(Rs("Job Details"), Chr(10), "")
Rs.Update
Rs.MoveNext
Loop
Rs.Close
Set Rs = Nothing
End Function
However I get the message cannot open any more databases on line 2.
I really dont understand it, has anyone come across this before.
Thanks
Carl.
Function replace()
Dim Rs As DAO.Recordset
Set Rs = CurrentDb.OpenRecordset("Plaistow Primary School")
Do Until Rs.EOF
Rs.Edit
Rs("Job Details") = replace(Rs("Job Details"), Chr(10), "")
Rs.Update
Rs.MoveNext
Loop
Rs.Close
Set Rs = Nothing
End Function
However I get the message cannot open any more databases on line 2.
I really dont understand it, has anyone come across this before.
Thanks
Carl.