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 threadsAuthorReplies-
WSarmsys
AskWoody Lounger -
WSarmsys
AskWoody Lounger
-
-
WSClaude
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
-
Asking Again here (New User and Fast change only backups)
by
thymej
2 hours, 25 minutes ago -
How much I spent on the Mac mini
by
Will Fastie
2 hours, 32 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
2 hours, 23 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
8 hours, 17 minutes ago -
Setting up Windows 11
by
Susan Bradley
1 hour, 19 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
3 hours, 44 minutes ago -
Powershell version?
by
CWBillow
4 hours, 37 minutes ago -
SendTom Toys
by
CWBillow
15 hours, 1 minute ago -
Add shortcut to taskbar?
by
CWBillow
8 hours, 33 minutes ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
1 day ago -
How can I install Skype on Windows 7?
by
Help
23 hours, 38 minutes ago -
Logitech MK850 Keyboard issues
by
Rush2112
6 hours, 33 minutes ago -
We live in a simulation
by
Alex5723
1 day, 15 hours ago -
Netplwiz not working
by
RetiredGeek
1 day, 1 hour ago -
Windows 11 24H2 is broadly available
by
Alex5723
2 days, 3 hours ago -
Microsoft is killing Authenticator
by
Alex5723
15 hours, 7 minutes ago -
Downloads folder location
by
CWBillow
2 days, 9 hours ago -
Remove a User from Login screen
by
CWBillow
1 day, 5 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
2 days, 1 hour ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
2 days, 1 hour ago -
Is it a bug or is it expected?
by
Susan Bradley
3 hours, 11 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
2 days ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
23 hours, 41 minutes ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
2 days, 13 hours ago -
Multiple Partitions?
by
CWBillow
2 days, 14 hours ago -
World Passkey Day 2025
by
Alex5723
10 hours, 44 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
3 days, 23 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
1 day, 23 hours ago -
Cached credentials is not a new bug
by
Susan Bradley
4 days, 3 hours ago -
Win11 24H2 Slow!
by
Bob Bible
3 hours, 47 minutes 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.