ADO 2.8 Write to Record Problem ( Read only Error )

Irish_Griffin

Board Regular
Joined
Jan 16, 2009
Messages
138
Gents,
Good morning, I come to you in my time of need !!

I just proudly launched a new excel form in the office that automaticaly databases the infomation into a .mdb file on my share drive.

Despite my best efforts in beta testing, an issue has arrised that has me baffeled !!


Of all of my users, one individual is not able to write to the database. He connects, generates a connected recordset, but when the code attempts to write to the recordset, he gets a "This Record is Read Only" error.

I take the same file to any other computer, run the upload function and it works fine......

What is going on ? I'm hoping it has to to do with the settings used in the rs.open command.

Attached you will find an example of my upload method.

Code:
sub example
 
Dim SQL_Text as String
Dim user_email as String
Dim Connection_String As String
 
 
Dim RS As ADODB.Recordset
Set RS = New ADODB.Recordset
 
 
Connection_String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=R:\FBE_CAD\FBE_Change_Database.mdb"
user_email = "[EMAIL="me@mycompany.com"]me@mycompany.com[/EMAIL]"
SQL_Text = "SELECT * FROM change_details WHERE [request_id] = 12345" 
RS.Open SQL_Text, Connection_String, adOpenStatic
 
RS!user_name = user_email  '  <---- ERROR OUT HERE
 
RS.Update
 
end sub


Many thanks,
Griff
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Solved

Guys,
I found the problem !!

The user in question only has read rights to the share drive !!! NOT MY CODE !!

Phew, launches are stressful !!!

Peace,
-Griff
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,517
Members
452,921
Latest member
BBQKING

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top