Advertisement

05.21.2008 at 09:14PM PDT, ID: 23423246
[x]
Attachment Details

Copying Access Forms - Why can't I get rid of the "Member already exists in an object module" error?

Asked by ctstone14 in Microsoft Access Database, Visual Basic Programming, Access Forms

Tags: Microsoft, Access, 2003/2007, Member already exists in an object module from which this object module derives.

I know this has been covered in other questions and the solutions to those questions have put me on a pretty good path to figuring this out, but I'm still coming up short.  Here's the scenario:

I have an Access 2003 database, and have been building a form to handle a certain section of my database.  I perfected one form and wrote over 2000 lines of VBA to get it working the way I want it to (the basic function of the database is to keep track of evaluation reports and create them using the Word Object Model).  So, as I move on to creating the next form (basically another report type) I would ike to just copy the perfected form and rename a few things, since the new form is going to be very similar.  I have 6 forms that should be based on this perfected form.

Upon viewing this newly copied form, I get this:  "Member already exists in an object module from which this object module derives."  I do have a code module, and global variables inside it.  But... this seems to not be causing the error.  I can comment out each section that produces this error (Form Load, Unload, and Close) but I still get the error when opening or closing the form.  What am I doing wrong?  Do I need to rename each object on each copied form?  Do I need a separate code module for each form?  Any help is appreciated, thanks all.

ClintStart Free Trial
 
Loading Advertisement...
 
[+][-]05.21.2008 at 09:20PM PDT, ID: 21620856

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, Visual Basic Programming, Access Forms
Tags: Microsoft, Access, 2003/2007, Member already exists in an object module from which this object module derives.
Sign Up Now!
Solution Provided By: DatabaseMX
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.25.2008 at 09:16AM PDT, ID: 21643042

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.25.2008 at 09:23AM PDT, ID: 21643063

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628