Avatar of ignasius Ukaoha
ignasius Ukaoha
 asked on

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
Microsoft Access

Avatar of undefined
Last Comment
dovidf

8/22/2022 - Mon
dovidf

What is the error?
dovidf

Is moduleid an autoincrement field? If so, that could be your problem.
ignasius Ukaoha

ASKER
ERROR 3113: Cannot update module ID 'Field' not Updatable
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
dovidf

If you are updating the record, the primary key should not be touched.
ASKER CERTIFIED SOLUTION
dovidf

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ignasius Ukaoha

ASKER
Ok Thanks. it Just worked. I am so so happy
dovidf

You're welcome
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
dovidf

Please close this question and award me the points for answering your question.