p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 23rd, 2004, 12:45 AM
Registered User
Points: 7, Level: 1
Points: 7, Level: 1 Points: 7, Level: 1 Points: 7, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Adelaide, South Australia, Australia.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Will not save

I have a very large Access 2000 database used by my mechanic. It works well except I am no longer able to make changes. Any simple change to a form tests correctly, the form appears to save, but the changes are gone when MS Access is next restarted. Changes to a module appear to save when I click the "diskette" save icon, but when I come to close the code form it displays the message, "The database Jet database engine could not find the object ''. Make sure the object exists and that you spell its name correctly."
Note the empty single quotes after the word "object".
After clicking OK it displays -
"You tried to commit or rollback a transaction without first beginning a transaction."
This is displayed after editing code - I have not opened the form for display.
It finally comes up with a messae "Do you want to save the changes to the design of the form 'sfPurchaseLines'. After recycling through the messages I have to click no, and loose everything.

The bahaviour is the same on both PCs. Both have 500 meg ram and are over 2000 mhz.
My mechanic purchased new Win XP and Office 2000 because his hardware supplier told him that was where the problem was.

I sure would appreciate help on this one.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old January 25th, 2004, 08:50 PM
Friend of Wrox
Points: 1,335, Level: 14
Points: 1,335, Level: 14 Points: 1,335, Level: 14 Points: 1,335, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: Lehigh Acres, FL, USA.
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

Have you check that the database is not and MDE file. It is possible to be read only and you are restricted from making design changes.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old January 26th, 2004, 03:38 AM
Registered User
Points: 7, Level: 1
Points: 7, Level: 1 Points: 7, Level: 1 Points: 7, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Adelaide, South Australia, Australia.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by jemacc
 Have you check that the database is not and MDE file. It is possible to be read only and you are restricted from making design changes.

 It is not anMDE file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old January 26th, 2004, 12:21 PM
sal sal is offline
Friend of Wrox
Points: 1,413, Level: 15
Points: 1,413, Level: 15 Points: 1,413, Level: 15 Points: 1,413, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2003
Location: Clarksville, TN, USA.
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your problem is not your hardware. Hardware folks do not know a thing about software. It is an Access 2000 problem (known bug). The problem is that MS Access can not find the code file associated with the form. That is the object it can not find. Also this is the reason that you can not save the code. The only way to fix this problem (before your database gets completely corrupted) is to:

-Create a new database
-import all tables and queries.
-Cut the code out of each form that has any code and paste it into a text file.
-under the properties of the form on the old dastabase click on “Has Module and select “No”
-save the form and import it into the new database.
-go into the form on the new database and paste the code on the code window. Save the form.

If you just import all of the items into the new database, the database will also get corrupted. (I know, another Access bug). Never import a form into access if the form contains code. It will corrupt your database.

This process will take some time, but it works (and you do not need to buy anything).

Make sure you keep an untouched copy of your full database before you begin this process.

Hope this works, I have had to do this many times before.




Sal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to save form Omomani Infopath 0 January 3rd, 2008 05:15 AM
save time umeshtheone Pro VB 6 1 October 23rd, 2007 09:01 AM
save an image ming C# 2005 0 July 11th, 2006 07:14 PM
"Save As" issue patrokolos BOOK: Excel 2003 VBA Programmer's Reference 0 November 18th, 2005 02:35 PM
How do you save a form as is? flyingfox VB.NET 1 May 21st, 2004 03:47 PM



All times are GMT -4. The time now is 01:58 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2010 Wiley Publishing, Inc