We help IT Professionals succeed at work.

ERROR 3113 MODULEID NOT UPDATABLE

ignasius Ukaoha
on
108 Views
Last Modified: 2017-03-16
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
Comment
Watch Question

dovidfCEO

Commented:
What is the error?
dovidfCEO

Commented:
Is moduleid an autoincrement field? If so, that could be your problem.

Author

Commented:
ERROR 3113: Cannot update module ID 'Field' not Updatable
dovidfCEO

Commented:
If you are updating the record, the primary key should not be touched.
CEO
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Ok Thanks. it Just worked. I am so so happy
dovidfCEO

Commented:
You're welcome
dovidfCEO

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

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions