Visual Basic for Applications (VBA) has a limit of 1,082 modules per Microsoft Access database, which includes forms and reports with the HasModule property set to Yes. To fix this memory problem, reduce the number of objects in your Access database. Consider dividing your application into multiple databases. If you have modules with a large amount of code, consider using library databases to store the code.