After blindly following HansV’s vba code, all my macros are no longer available.
I receive Module not found error message. Please help. Thanks.
Armstrong
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Module not found
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Module not found
- This topic has 26 replies, 4 voices, and was last updated 15 years, 10 months ago.
AuthorTopicViewing 2 reply threadsAuthorRepliesWSClaude
AskWoody Lounger-
WSarmsys
AskWoody LoungerJune 13, 2009 at 6:49 am #1164628Hi Claude,
Thanks for being kind enough to help.
The VBA code was supplied by HansV (http://www.wopr.com/index.php?showtopic=764062) as follows:
Me.OrderBy = “LastName”
Me.OrderByOn = TrueNonetheless, after I recompiled the database in question, all macros are restored.
Hope this will help others.
Armstrong
WSSteveH
AskWoody Lounger-
WSarmsys
AskWoody Lounger -
WSarmsys
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSarmsys
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSarmsys
AskWoody LoungerJune 15, 2009 at 6:08 pm #1164866Try creating a new database, and import the database objects from the problem database into it.
Thanks for your help. Following your advice, during the import, the “Module not found” error message pops up. Indeed, that’s exactly form I blindly entered your VBA code. Forgive my ignorance, not sure why the form has anything to do with module, which I suppose to mean any VBA code. What should I do next?
Thanks.
Armstrong -
WSHansV
AskWoody LoungerJune 15, 2009 at 6:18 pm #1164868Forms and reports may contain a code module.
I’m wondering whether the fact that the name of your form contains Chinese characters causes the problem. Access itself can handle that, but VBA doesn’t support Unicode characters, as far as I know.
You could try giving the form a name that uses only western characters. -
WSarmsys
AskWoody LoungerJune 15, 2009 at 8:49 pm #1164875Forms and reports may contain a code module.
I’m wondering whether the fact that the name of your form contains Chinese characters causes the problem. Access itself can handle that, but VBA doesn’t support Unicode characters, as far as I know.
You could try giving the form a name that uses only western characters.HansV,
I’m sorry I forget to mention. My form in question doesn’t have and doesn’t want any VBA code. How can I properly remove the “module”?
Thanks.
Armstrong -
WSarmsys
AskWoody Lounger -
WSarmsys
AskWoody Lounger -
WSarmsys
AskWoody LoungerJune 15, 2009 at 11:14 pm #1164882Now I discover a definitive but simple solution to solve all heart-stopping issues posted above. Go to the Property Sheet, select Other tab. Set Has Module property to ‘No’. You must run Compact & Repair Database.
That’s it. One thing for sure: the issue has nothing to do with Asian language.
Thank you.
Armstrong -
WSHansV
AskWoody LoungerJune 16, 2009 at 12:42 am #1164885I still think the problem *did* have to do with the Chinese characters in the name of the form. As I mentioned, VBA doesn’t support non-western characters. As long as the Has Module property of the form was set to Yes, the form had a VBA code module, and because the form name was not valid in VBA, this caused conflicts.
-
WSarmsys
AskWoody LoungerJune 16, 2009 at 1:30 am #1164892I still think the problem *did* have to do with the Chinese characters in the name of the form. As I mentioned, VBA doesn’t support non-western characters. As long as the Has Module property of the form was set to Yes, the form had a VBA code module, and because the form name was not valid in VBA, this caused conflicts.
HansV,
I’ll test your interesting theory but, with due respect, I doubt it especially for Access 2007. I’ll show you VBA code written in Chinese soon.
Armstrong -
WSarmsys
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSarmsys
AskWoody LoungerJune 16, 2009 at 4:26 am #1164910 -
WSHansV
AskWoody Lounger -
WSarmsys
AskWoody LoungerJune 15, 2009 at 6:16 pm #1164867Try creating a new database, and import the database objects from the problem database into it.
The online help offers the following help, which I can’t make any sense out of it.
I did delete something like VBA. Perhaps I have deleted something important part of the project. How could I restore it? Please help. thanks.Module not found Modules aren’t loaded from a code reference — they must be part of the project. This error has the following cause and solution:
-
[*]The requested module doesn’t exist in the specified project. For example, the statement MyModule.SomeVar = 5generates this error when MyModuleisn’t visible in the project MyProject
Regards,
Armstrong
-
-
-
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Red x next to folder on OneDrive iPadOS
by
dmt_3904
1 hour, 25 minutes ago -
Are manuals extinct?
by
Susan Bradley
11 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
8 hours, 52 minutes ago -
Network Issue
by
Casey H
55 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
20 hours, 52 minutes ago -
May 2025 Office non-Security updates
by
PKCano
21 hours, 18 minutes ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
23 hours, 13 minutes ago -
pages print on restart (Win 11 23H2)
by
cyraxote
6 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
1 day, 1 hour ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
1 day, 1 hour ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
1 day, 8 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 hour, 11 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
1 day, 20 hours ago -
How much I spent on the Mac mini
by
Will Fastie
19 hours, 34 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
14 hours, 44 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
2 days, 2 hours ago -
Setting up Windows 11
by
Susan Bradley
21 hours, 4 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
1 day, 21 hours ago -
Powershell version?
by
CWBillow
1 day, 22 hours ago -
SendTom Toys
by
CWBillow
9 hours, 13 minutes ago -
Add shortcut to taskbar?
by
CWBillow
2 days, 2 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
2 days, 18 hours ago -
How can I install Skype on Windows 7?
by
Help
2 days, 17 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
2 days ago -
We live in a simulation
by
Alex5723
3 days, 8 hours ago -
Netplwiz not working
by
RetiredGeek
2 days, 19 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
3 days, 21 hours ago -
Microsoft is killing Authenticator
by
Alex5723
23 hours, 4 minutes ago -
Downloads folder location
by
CWBillow
4 days, 3 hours ago -
Remove a User from Login screen
by
CWBillow
2 days, 23 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.