Results 1 to 2 of 2
  1. #1
    loulou is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Mar 2012
    Posts
    1

    Error 28 Out of Stack Space


    Hi Everyone,

    My db has worked fine for well over a year and a half and today i receive the Run time error 28, out of stack space, i did not code the db nor no anything about it, below is the code and i have highlighted the section causing the problem according to the debugger, i hope you can help. It is access 2003,

    Code:
    Public Function UpdateCommission()
       If Me.CommissionPayable1 = False Then
          Me.CommissionDue = ([GrossOperatingProfit]) / 36 * 5
       Else
          Me.CommissionDue = 0
       End If
       Me.CommissionDue.Requery
    End Function
    
    Public Function UpdateCommission1()
       If Me.CommissionPayable3 = False Then
          Me.CommissionDue1 = ([GrossOperatingProfit]) / 2
       Else
          Me.CommissionDue1 = 0
       End If
       Me.CommissionDue1.Requery
    End Function
    
    Public Function UpdateCommission2()
       If Me.CommissionPayable5 = False Then
          Me.TelesalesCommission = 40
       Else
          Me.TelesalesCommission = 0
       End If
       Me.TelesalesCommission.Requery
    End Function
    Last edited by RuralGuy; 03-30-2012 at 10:52 AM. Reason: Added Code Tags

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I do not see anything inherently flawed with the code you posted other than the minor issue with nothing is being returned by the function. Your issue is more than likely with the code that invokes this function perhaps too often.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. disk space or memory error
    By Cmitchell in forum Database Design
    Replies: 1
    Last Post: 04-04-2011, 03:36 PM
  2. Replies: 1
    Last Post: 10-06-2010, 08:36 AM
  3. Getting Rid of Empty Space
    By Pam Buckner in forum Database Design
    Replies: 5
    Last Post: 03-05-2010, 05:46 PM
  4. Replies: 3
    Last Post: 05-30-2009, 12:30 PM
  5. Error 28: Out of Stack Space??
    By mugsmugs in forum Access
    Replies: 1
    Last Post: 02-22-2009, 09:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums