473,657 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with upgrade to Access 2007

9 New Member
Hi there,
I recently updated to Access 2007, and I'm getting a couple of errors that i'm not sure how to deal with.

I worked with a lot of databases in Access 2003 (.mdb), and for some reason some of these databases will not open in access 2007.

The errors I get say:

"An error occured while loading 'Form_frm_tabst rip'. do you want to continue loading the project?" I can choose yes, no or help.

On choosing yes, another message box pops up that says:

"The expression On Open you entered as the event property setting produced the following error: Invalid procedure call or argument.
*The expression may not result in the name of the macro, the name of a used defined function, or [event procedure].
*There may have been an error evaluating the function, event or macro.

I'm given the option to show help, and when I click on this it says:

"This error occurs when an event has failed to run because Microsoft Office Access cannot evaluate the location of the logic for the event. For example, if the OnOpen property of a form is set to =[Field], this error occurs because Access expects a macro or event name to run when the event is fired."

On choosing no after the first error, a message box popos up and says:

"The data cannot be opened becasue the VBA project contained in it cannot be read. The database can only be opened if the VBA project is first deleted. Deleting the VBA project removes all cose from modules, forms and reports. You should back up the database before attempting to open the database and delete the VBA project.

To create a backup copy, click cancel and then make a backup copy of your database. To open the database and delete the VBA project without creating a backup copy, click OK" and I'm given the chooise of choosing OK or cancel, and I choose cancel.



Why won't my VBA code load for this database? I have different versions of this database with identical code, and these databases load perfectly fine.
Jun 26 '08 #1
7 23864
nico5038
3,080 Recognized Expert Specialist
When upgrading, the first rule is to compile the code in the VBA code window to make sure there are no code errors.

Did you try that ?

Nic;o)
Jun 28 '08 #2
vjdominick
4 New Member
I have same problem. Can anyone help or give suggestions?
Jul 10 '08 #3
missinglinq
3,532 Recognized Expert Specialist
Because of the first error message "The expression may not result in the name of the macro, the name of a user defined function, or [event procedure]" I'd check to make sure that there are no References missing. If a function resides in a library that isn't loaded, Access assumes this is a user defined function.

To check for missing references, open any code module (or open the Debug Window, using Ctrl-G, provided you haven't selected the "keep debug window on top" option). Select Tools | References from the menu bar. Examine all of the selected references.

If any of the selected references have "MISSING" in front of them, make a note of their names, unselect them, back out of the dialog box, then go back into References and reselect them.

Welcome, new members, to Bytes!

Linq ;0)>
Jul 10 '08 #4
vjdominick
4 New Member
Thanks for replying, Ling.

I followed your directions to examine the references, I didn't see anything missing. Here is the list that has been checked:
Visual Basic For applications
Microsoft Access 12.0 Object Library
Microsoft Rich Textbox Control 6.0
OLE Automation
Microsoft Visual Basic for Applications Extensibility 5.3
Microsoft office 12.0 Access database engine Object Library

We are in the middle of software and hardware upgrade. I can open the db in 2000, everything works fine, but if I open the db in 2007, I get the following message, same message when I convert the db to 2007, then open it:
The expression On click you entered as the event property setting produced the floowing error: Member already exists in an object module from which this object module derives.
*The expression may not result in the name of a macro, the name of a user-defined function, or [event procedure].
*There may have been an error evaluating the function, event, or macro.
If I click Help button, I will get this:
This error occurs when an event has failed to run because Microsoft Office Access cannot evaluate the location of the logic for the event. For example, if the OnOpen property of a form is set to =[field], this error occurs because Access expects a macro or event name to run when the event is fired.

Please help! I really need to get this solved by next week.
Thanks in advance.

V
Jul 10 '08 #5
missinglinq
3,532 Recognized Expert Specialist
I'm sorry, trying to do too many things at once! In version 2007, in order for VBA code to execute, the folder holding the database needs to be designated as a “trusted” location. This may be the problem.

To trust your folder, click:
* Office Button (top left)
* Access Options (bottom of dialog)
* Trust Center (left)
* Trust Center Settings (button)
* Trusted Locations (left)
* Add new location (button)

Linq ;0)>
Jul 10 '08 #6
vjdominick
4 New Member
Thanks for speedy response.

I had created a trust folder to put all the front end in there. So I know it's not the trust issue.

I am not a VB programmer, this is new to me. I just try to use the debug window. and got this message:
Compile error:
member already exists in an object module from which this object module derives.

Then in the code window: Dim DataChange As Boolean is hightlighted.
Is that means DataChange is a reserved word?

V
Jul 10 '08 #7
vjdominick
4 New Member
It's working now. Thanks for everything. That is the problem. I just has to rename the variable.

V
Jul 10 '08 #8

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

Similar topics

29
3451
by: Paul H | last post by:
Why the heck was this dropped? All my dbs use ULS even the complex ones. It aint perfect, it's too fiddly, but it works. How will I be able to say "These users can run these reports and these users can't." in Access 2007? Will I have to create my own tables (tblSecurityGroups, tblSecurityUsers) and code the whole thing? Thanks, Paul
1
11512
prn
by: prn | last post by:
Hi folks, I'm relatively new to Access, but I seem to have drawn the short straw, so I have the assignment for my workplace of looking for problems/inconsistencies in migrating applications to Access 2007 from previous versions. We don't have a lot of Access applications, but even a dozen or so can be an interesting challenge. I have loaded a few that were created in Access 2003 into Access 2007 and all of the ones I have tried have come up...
17
7659
by: Neil | last post by:
A client of mine likes some of the new bells and whistles in Access 2007, and is thinking about converting our A03 format MDB to an A07 format file. However, while some of the users have A07, many do not, and it's not clear when they would get it. His thought was to use the upcoming Access 2007 runtime to allow the users who are still running Office 2003 to be able to run the database. While I use multiple versions of Access on my...
16
11062
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might know one way or the other whether that was true or not, or could point me to an article or help text that would. What I have seen so far online and in Access 2007 help seems to confirm the above. But that (or at least (b)) seems incredible that it...
3
7065
by: cwoll | last post by:
Hi I need help. I have a ms access 2003 database that I would like to upgrade to ms access 2007. The first time I opened I had to fix a few references it wanted a DAO2535.TLB file witch I gave it, and a utility.mda file witch I think i gave it. The instructions on Microsoft's web sight were not very clear where to put the utility.mda so I am not sure if I have it at the right place. The Database does not ask for it anymore. I have...
0
2692
by: raylopez99 | last post by:
10 years ago, the below was written (see very end, after my signature RL). What, if anything, has changed? I have Access 2003 and soon Access 2007 on a Windows XP Professional or Windows Vista Ultimate machine, with SQL Server Express running on it, and I want somebody, with a password (which I will provide) to be able to log onto a A03 or A07 dB from the internet. Now that I type this I realize that unless I put the database onto a...
0
1215
by: Walter Konopacki | last post by:
Does anyone know if the problems displaying OLE objects in forms and reports has been addressed in Access 2007. Want to upgrade if it has been resolved. Any help greatly appeciated.
9
4485
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd like to know is the stability, speed & ease of use of both the products. I believe Access 2007 has a new file format too and that it may be slower.
3
3366
by: coalminer | last post by:
I am updating an Access 97 DB w/ VBA code to Access 2007. The VBA code uses DAO objects that Access 2007 references when I converted the db files (first from 97 to 2002, then to 2007). My problem specifically is with the two references: "Microsoft DAO 3.6 Object Library" and "Microsoft Office 12.0 Access database engine Object Library." The stuff I've read on the web says that the ADE 12.0 is supposed to supercede the DAO 3.6 reference, and that...
0
8413
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8740
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7352
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2742
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 we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.