Results 1 to 4 of 4

Thread: Runtime error "Out of Stack Space"

  1. #1
    Join Date
    Jan 2009
    Posts
    110

    Runtime error "Out of Stack Space"

    I am facing an issue whenever i am trying to click on Open or double click on any record i am getting the following error message

    Runtime error "Out of Stack Space"

    I don't know whats wrong with it early i never got this message and for more information i am using Access 2007 and DAO method.

  2. #2
    Join Date
    Jan 2009
    Posts
    150

    Re: Runtime error "Out of Stack Space"

    It might happen that you have too many active Function, Sub, or Property procedure calls because of that you are getting this error message or check that procedures aren't nested too deeply. This is especially true with recursive procedures, that is, procedures that call themselves. Make sure recursive procedures terminate properly. Use the Calls dialog box to view which procedures are active.

  3. #3
    Join Date
    Jan 2009
    Posts
    110

    Re: Runtime error "Out of Stack Space"

    I had a check for it everything is proper but i don't know why i am getting getting Out of Stack Space error message you can also have a check for the code might i have made any mistake

    Code:
    Private Sub SearchList_Data1Click(Cancel As Integer)
    On Error GoTo Err_SearchList_DblClick
    Dim Data1 As DAO.Database
    Dim CN As DAO.Recordset
    
    DoCmd.OpenForm "FrmProducts"
    
    Set CN = Forms!FrmProducts.Recordset.Clone
    
    CN.FindFirst "[ProductID] = " & Me.SearchList
    Forms!FrmProducts.Bookmark = CN.Bookmark
    
    DoCmd.Close acForm, Me.Name
    
    Exit_SearchList_Data1lClick:
    Exit Sub
    
    Err_SearchList_Data1lClick:
    MsgBox Err.Description
    Resume Exit_SearchList_Data1lClick
    End Sub

  4. #4
    Join Date
    Jan 2009
    Posts
    150

    Re: Runtime error "Out of Stack Space"

    As i can see in your code you have to replace the following code from

    Code:
    Set CN= Forms!FrmProducts.Recordset.Clone
    to
    Code:
    Set CN = Forms!FrmProducts.Recordsetclone
    because you are using DAO method not ADO method and i hope now you won't get Out of Stack Space error message.

Similar Threads

  1. Replies: 2
    Last Post: 07-01-2012, 11:50 AM
  2. Replies: 4
    Last Post: 05-04-2011, 03:27 AM
  3. Runtime Error "13": type incompatible
    By Shell in forum Operating Systems
    Replies: 3
    Last Post: 14-06-2009, 05:21 AM
  4. Replies: 8
    Last Post: 13-01-2008, 02:18 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,449,892.22165 seconds with 16 queries