Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read-only error with edit recordset via Oracle ODBC

Status
Not open for further replies.

shauntwo

Technical User
Jul 9, 2002
64
US
Hi,

I've got a pass-through query that I create programmatically with "strSQL", and I'm having trouble editing the recordset based on the query once I call it. Here's the code:

Set dbs = CurrentDb
CurrentDb.QueryDefs("GenericPassThrough").SQL = strSQL
Set rst = dbs.OpenRecordset("GenericPassThrough")
With rst
.Edit
![RENEW_LETTR_ALWD] = "N"
.Update
End With
dbs.Close

My code stops on .Edit and informs me that "Cannot update. Database or object is read-only." I'm not sure how to interpret this, because I have editing priviledges through my Access front-end. How else can I troubleshoot this?

Thanks for your help,
Shaun
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top