Runtime Error 3027 DAO Recordset Any Help...

  • Thread starter Thread starter Brandon Johnson
  • Start date Start date
B

Brandon Johnson

Hello im having a bit of problems with editing a field in a table using
DAO. The error is tossed at the point where i initialize the Edit
feature: If anyone has any thoughts please let me know. it doesnt make
any sense to me cuz i dont see why the db or object would be read only.
Havent done anything to make it readonly. Thanks for the help

Set Maindao = CurrentDb.OpenRecordset("SELECT DISTINCT PromoteGroup,
Client, UPCCase, UPCItem FROM tblItemPromoteGroups;", dbOpenDynaset)
mainCriteria = "[PromoteGroup] = '" & promotes & "'"

Maindao.FindFirst mainCriteria
Maindao.Edit
Maindao!Client = txtClient
Maindao!PromoteGroup = txtPromote
Maindao!UPCCase = txtCaseUPC
Maindao!UPCItem = txtItemUPC
Maindao.Update
Maindao.Close
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top