473,503 Members | 939 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The Expression On Open you entered.......Help!

31 New Member
So close to finishing and then this error jumped out at me:

"The expression On Open you entered as the event property setting produced the following error: Member already exists in an object module from which this object module derives"

This has been caused by the (extremely enjoyable) exporting of my database into another despite me making sure that all reference .dll files where added and copied to the correct locations.

I think I understand what the error is caused by but I cant find the problem as the debugger is sod all use as it never gets the chance to kick in.

To test the problem I edited out "Form_Open", the error was still there but now moved onto the next event "On Load". After I had edited out all "On **" events which activate before the form opens, the form finally loads. I then attempted to add the "On Open" event back in with no code in it.

i.e.

Private Sub Form_Open(Cancel As Integer)

End Sub

Impressively it still doesnt like this despite there being no code in it???

I am sure that I have gone through the form's code and checked that their are no clashes with the other database's modules but I am at a loss.

Any pointers???

Cheers for any help :)
Jan 9 '07 #1
5 21268
PEB
1,418 Recognized Expert Top Contributor
So close to finishing and then this error jumped out at me:

"The expression On Open you entered as the event property setting produced the following error: Member already exists in an object module from which this object module derives"

This has been caused by the (extremely enjoyable) exporting of my database into another despite me making sure that all reference .dll files where added and copied to the correct locations.

I think I understand what the error is caused by but I cant find the problem as the debugger is sod all use as it never gets the chance to kick in.

To test the problem I edited out "Form_Open", the error was still there but now moved onto the next event "On Load". After I had edited out all "On **" events which activate before the form opens, the form finally loads. I then attempted to add the "On Open" event back in with no code in it.

i.e.

Private Sub Form_Open(Cancel As Integer)

End Sub

Impressively it still doesnt like this despite there being no code in it???

I am sure that I have gone through the form's code and checked that their are no clashes with the other database's modules but I am at a loss.

Any pointers???

Cheers for any help :)
Try after backing up ur database:

Go in form properties and especially to Has module property

Turn it off!

then recreate all events in ur form!
Jan 9 '07 #2
philelpko
31 New Member
Try after backing up ur database:

Go in form properties and especially to Has module property

Turn it off!

then recreate all events in ur form!
Cheers for the help. Gave it a try but with no success.

Found the problem a few mins ago. I cut all the code out of the form and pasted it back in bit by bit (not a fun job, it was over 60 pages long in word!)

The offending sub was called - Private Sub CarClaimCost()

I have no idea why it is clashing with anything but as soon as it is removed the form loads fine.

Still totally confused but at least I can get around it.

Cheers again for the help :)
Jan 9 '07 #3
NeoPa
32,557 Recognized Expert Moderator MVP
Sometimes Access gets its knickers in a twist :(.
When this happens I :
1. Cut my code out and save it in a text editor.
2. Save offending object.
3. RePaste code back into object.
4. Compile project.

Normally works after that.
Jan 9 '07 #4
InterimResources
1 New Member
I found my answer on ** Link to competing forum removed as per site rules **
In short; refresh all your references (When working on different computers this migth also be your solution)
GRTZ Jeroen
Nov 18 '08 #5
NeoPa
32,557 Recognized Expert Moderator MVP
We appreciate your posting your answer Jeroen, but unfortunately (I'm sure accidentally) your link violates our rules so I've had to remove it.

Nevertheless, we like your thinking and welcome to Bytes!
Nov 19 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

29
2477
by: shank | last post by:
1) I'm getting this error: Syntax error (missing operator) in query expression on the below statement. Can I get some advice. 2) I searched ASPFAQ and came up blank. Where can find the "rules"...
3
19531
by: CLarkou | last post by:
On a client's machine with Office 97, my access program gives an error "The Expression you entered refers to an object that is closed or doesn't exist" when I am assigning a value in the checkbox....
2
8198
by: Terry Bickle | last post by:
Please forgive me for using the wrong term here or there. I'm an old Excel 4 macro guy who didn't convert to VB and I'm tinkering with an Access 2000 DB. I'm sure there is a simple Access 101...
2
19411
by: Michelle | last post by:
Hello all, I recently inherited a SQL 7.0 Server db accessed by a 2000 Access interface. When I try to open "Shipping Check Out" I am greeted with the following: The expression On Load you...
17
17323
by: Peter Tenk | last post by:
Hi I've never really worked with VBScript - I'm an old-fashioned HTML guy - but I thought I'd have a go because I wanted to do something REALLY SIMPLE in my Access 2000 database. This is a plea for...
2
1816
by: Joey | last post by:
Hello guys, I'm trying to learn about regular expressions. I need to be able to use an RE that can evaluate for STRINGS (or specific sequences of characters), not just occurances of characters....
4
10897
by: bizt | last post by:
Hi, Im looking for a regular expression to check that a entered filename is valid. I have a cms Im building where the user can enter the name of a file, enter content and then click Save where...
0
931
by: Peted | last post by:
Hi, im having some trouble with reg expression pattern matching for something i think should be a straightforward test. Im validating the text being entered in a winforms textbox and i need...
3
10864
by: MyWaterloo | last post by:
I am trying to open my purchase orders form and go to the last record. In the on open command I do: DoCmd.GoToRecord , , acLast Seems straight forward enough...but I keep getting this message...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7463
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5017
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1515
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
389
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.