Results 1 to 6 of 6
  1. #1
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124

    Is there a limit to number of functions/subs in a Form Module

    Is there a limit to the number of fucntions/suroutines in a Form's module. I got an overflowerror when compiling and I moved a fucntion from the Forms mdoule to another module and the error did not re-appear.

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Yes, though I can't remember offhand what it is. I think 65k lines. There's also a character limit per line.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124
    Quote Originally Posted by pbaldy View Post
    Yes, though I can't remember offhand what it is. I think 65k lines. There's also a character limit per line.
    But is there a physical limit to the number of Fucntions/Subroutines/Module? My problem was solved by removing one function and placing it in another module.

  4. #4
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    Just for curiosity, how many fucntions/suroutines do you have in the Form's module?

  5. #5
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I think that question has already been answered

    the functions aren't limited, the space to write them is.

  6. #6
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Likely moving a function brought you below the overall limit. I've seen this, but not on an MS site:

    Max 1,024 characters per line.
    Max 6,601 lines per procedure.
    Max 65,545 lines per module.
    Max 1,000 modules per database.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. limit number of records in a subform
    By PJT in forum Forms
    Replies: 4
    Last Post: 04-13-2014, 11:29 AM
  2. Replies: 2
    Last Post: 01-07-2013, 07:24 AM
  3. Replies: 2
    Last Post: 06-10-2012, 10:25 PM
  4. Limit number of records in report
    By aksnell in forum Reports
    Replies: 3
    Last Post: 12-05-2011, 02:31 PM
  5. Replies: 4
    Last Post: 05-16-2011, 04:58 PM

Tags for this Thread

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