ERROR 3113 MODULEID NOT UPDATABLE

I am trying to run an update but getting this error please help me resolves this. Thanks
The Code
CurrentDb.Execute "UPDATE tblmodules " & _
    "Set ModuleID=" & Me.MODULEID & _
    ",CourseCode='" & Me.COURSECODE.Value & "'" & _
    ",CourseTitle='" & Me.COURSETITLE.Value & "'" & _
    ",ModuleNo='" & Me.MODULENO.Value & "'" & _
    ",StartDate='" & Me.StartDate.Value & "'" & _
    ",EndDate='" & Me.EndDate.Value & "'" & _
    ",StudyCentre='" & Me.StudyCentre.Value & "'" & _
    ",Facilitator='" & Me.Facilitator.Value & "'" & _
    "WHERE ModuleID =" & Me.MODULEID.Tag
ignasius UkaohaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dovidfCEOCommented:
What is the error?
0
dovidfCEOCommented:
Is moduleid an autoincrement field? If so, that could be your problem.
0
ignasius UkaohaAuthor Commented:
ERROR 3113: Cannot update module ID 'Field' not Updatable
0
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

dovidfCEOCommented:
If you are updating the record, the primary key should not be touched.
0
dovidfCEOCommented:
Remove  "Set ModuleID=" & Me.MODULEID & _ from the statement and it should work.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ignasius UkaohaAuthor Commented:
Ok Thanks. it Just worked. I am so so happy
0
dovidfCEOCommented:
You're welcome
0
dovidfCEOCommented:
Please close this question and award me the points for answering your question.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.