Hi Ron,
It sounds like you have a corrupted module. Try the following:
- open the Report in design view
- select the menu option View > Code
- select the menu option Edit > Select All
- select the menu option Edit > Copy
- paste code into a notepad file
- close the VBA window
- in the design view of the Report view the properties window
- select the property "Has Module" and change from Yes to No (deleting code
behind Report)
- close and save the Report
- open the VBA window (press ALT+F11)
- select the menu option View > Immediate Window
- In the Immediate Window type the following and press enter:
Application.SaveAsText acReport, "the name of your Report",
"c:\myReport.txt"
- In the Immediate Window type the following and press enter:
Application.LoadFromText acReport, "New name of your Report",
"c:\myReport.txt"
- Open the new Report in design view and select the menu option View > Code
- Copy the code in the notepad file into Report module of this new Report
I hope this helps! If you have additional questions on this topic, please
respond back to this posting.
Regards,
Eric Butts
Microsoft Access Support
(e-mail address removed)
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<
http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <
http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."
This posting is provided "AS IS" with no warranties, and confers no rights
--------------------
| Content-Class: urn:content-classes:message
| From: "Ron Sharbono" <
[email protected]>
| Sender: "Ron Sharbono" <
[email protected]>
| Subject: Access Error
| Date: Wed, 14 Jul 2004 14:36:30 -0700
| Lines: 3
| Message-ID: <
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcRp6qAWjy3lMkdRRH+uKVECe3fZ6A==
| Newsgroups: microsoft.public.access.reports
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.access.reports:142746
| NNTP-Posting-Host: tk2msftngxa12.phx.gbl 10.40.1.164
| X-Tomcat-NG: microsoft.public.access.reports
|
| Whenever I modify a report module I get a message that
| Microsoft Access has encountered a problem and needs to
| close. Any insight?
|