7952 You made an illegal function call.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syedshaffee
    New Member
    • Jan 2012
    • 91

    7952 You made an illegal function call.

    Hey people,
    Need your help again i'm getting "7952 You made an illegal function call."

    i m getting a message "This RecordSet is not updatable"
    i don't want that message to be displayed on the status bar and i have used SysCmd method with acSysCmdSetStat us as its parameter but it doesn't work
    Code:
    Doevents
    SysCmd(acSysCmdClearStatus)
  • twinnyfo
    Recognized Expert Moderator Specialist
    • Nov 2011
    • 3653

    #2
    syedshaffee,

    Is your question regarding the error or regarding the message displayed?

    If it is concerning the actual error, that type of error typically occurs when you are trying to update a table from a query, but the design of the query prevents the DB from performing such an update, usually, because the specific field is ambiguous or aggregated.

    If you are concerned about the warning message, one way to turn these messagees off is to use this code:

    Code:
        DoCmd.SetWarning False
        'Insert your code here
        DoCmd.SetWarnings True
    But, either way, you should have effective Error Handling code built into all of your VBA, so that you will be able to know when your code malfunctions and where and why, without your DB locking up or crashing.

    Let me know if this helps.

    Comment

    • syedshaffee
      New Member
      • Jan 2012
      • 91

      #3
      Thanks for the reply And yes the query design view of the query prevents the DB from performing such an update

      Thanks a lot

      Comment

      • syedshaffee
        New Member
        • Jan 2012
        • 91

        #4
        I Didn't Knew thanx for the Explanation twinnyfo

        Comment

        • twinnyfo
          Recognized Expert Moderator Specialist
          • Nov 2011
          • 3653

          #5
          My pleasure. Glad I could help!

          Comment

          Working...