473,394 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Problems with upgrade to Access 2007

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_tabstrip'. 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 23832
nico5038
3,080 Expert 2GB
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
I have same problem. Can anyone help or give suggestions?
Jul 10 '08 #3
missinglinq
3,532 Expert 2GB
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
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 Expert 2GB
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
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
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
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...
1
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...
17
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...
16
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...
3
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,...
0
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...
0
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
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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...
0
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
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...

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.