A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Module not found



 
 
Thread Tools Display Modes
  #1  
Old September 1st, 2006, 09:10 AM posted to microsoft.public.access.forms
Flynny
external usenet poster
 
Posts: 7
Default Module not found

G'day,

I have created a fairly big access database, but only through the use of
Microsoft Access for Dummies and the occasional visit to here. So basically I
know nothing about what happens behind the scenes.

I have created forms with command buttons, that when clicked either close
the form i'm viewing or open another form which is filtered to the relevant
record I am viewing.

I have now created a new form and added command buttons to that form, but
when clicking those buttons to open another related form I get a message
saying "module not found" and then taken to a strange screen. When I go back
to my existing forms where command buttons where already in existence and
working and then click those buttons I again get the message "module not
found". By not saving the changes to the new form and then closing and
reopening my database, the existing forms and their command buttons are
working again, but the same thing re-occurs everytime I try to add a new
command button (whether it be on a new form or existing form).

As mentioned I'm a bit like Sgt Shultz here on the behind the scenes stuff,
so please make your answers as idiot proof as possible.

Cheers,
  #2  
Old September 1st, 2006, 11:45 AM posted to microsoft.public.access.forms
Arvin Meyer [MVP]
external usenet poster
 
Posts: 4,231
Default Module not found

Your database is probably corrupted.

First make a copy of your database file. Next do a repair and compact on the
copy (Tools ... Database Utilities ... Compact and Repair)

Make a new empty database and import the objects, with the exception of the
offending form. Try importing the offending form, and if you have any
trouble, just recreate it. Compile your database by going to any code window
and choosing Debug ... Compile from the menu.
--
Arvin Meyer, MCP, MVP
Free MS-Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"Flynny" wrote in message
...
G'day,

I have created a fairly big access database, but only through the use of
Microsoft Access for Dummies and the occasional visit to here. So
basically I
know nothing about what happens behind the scenes.

I have created forms with command buttons, that when clicked either close
the form i'm viewing or open another form which is filtered to the
relevant
record I am viewing.

I have now created a new form and added command buttons to that form, but
when clicking those buttons to open another related form I get a message
saying "module not found" and then taken to a strange screen. When I go
back
to my existing forms where command buttons where already in existence and
working and then click those buttons I again get the message "module not
found". By not saving the changes to the new form and then closing and
reopening my database, the existing forms and their command buttons are
working again, but the same thing re-occurs everytime I try to add a new
command button (whether it be on a new form or existing form).

As mentioned I'm a bit like Sgt Shultz here on the behind the scenes
stuff,
so please make your answers as idiot proof as possible.

Cheers,



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.