473,834 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Code not saving in Access 97 on Windows XP.

I have recently had reason to worke on 3 different Access/VBA applications of
different sizes on Windows XP machines. In all cases, I've had frequent
instances of code changes being discarded, and having to re-write the changes.
has anyone else seen this problem?

It was pretty embarassing for a while delivering code that worked before I
closed Access, then failed upon deployment. I finally developed the habit of
copying my code into Notepad before closing Access, then re-opening the app to
test it to see if all my changes were retained.
Nov 13 '05 #1
2 1576
Hi Steve

Yes, this kind of corruption is not uncommon. It occurs when the 2 copies of
the code (the compiled and text versions) are out of sync. A decompile fixes
it.

Triggers of the problem include:

1. Switching versions.
If you develop something in A2003 and then run it in an earlier version,
2000 or 2002 cannot read the A2003 binary, so they have to recompile for
their own. This implicit recompiling seems to contribute to the problem. We
now explicitly decompile, compact and recompile in the target version
whenever we switch versions.

2. Name AutoCorrect
You probably know all about this, but for anyone who's following the thread:
http://members.iinet.net.au/~allenbrowne/bug-03.html:

3. Crashes
Naturally. Example: the bug that crashes A2002 and A2003 if the field named
in the LinkChildFields of a subform control is not represented by a control
in the subform (and is therefore an AccessField object instead of a Textbox
object).

Another symptom of the same problem is breakpoints that don't break or don't
clear.

HTH

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Steve Jorgensen" <no****@nospam. nospam> wrote in message
news:ou******** *************** *********@4ax.c om...
I have recently had reason to worke on 3 different Access/VBA applications
of
different sizes on Windows XP machines. In all cases, I've had frequent
instances of code changes being discarded, and having to re-write the
changes.
has anyone else seen this problem?

It was pretty embarassing for a while delivering code that worked before I
closed Access, then failed upon deployment. I finally developed the habit
of
copying my code into Notepad before closing Access, then re-opening the
app to
test it to see if all my changes were retained.

Nov 13 '05 #2
Well, I've seen it happen occasionally in A2K & A2K2 as you describe as well,
but only once in a while. When doing Access 97 development on Windows XP,
however, I'm seeing it happen several times a day, on multiple projects at
multiple sites.

I never used to have this much trouble with Access 97 on Windows 2K and W98.
I had occasional corruption, sure, but not this often, and not usually with
this symptom, and I don't have such difficulty with A2K on WXP.

On Thu, 20 Jan 2005 12:36:00 +0800, "Allen Browne"
<Al*********@Se eSig.Invalid> wrote:
Hi Steve

Yes, this kind of corruption is not uncommon. It occurs when the 2 copies of
the code (the compiled and text versions) are out of sync. A decompile fixes
it.

Triggers of the problem include:

1. Switching versions.
If you develop something in A2003 and then run it in an earlier version,
2000 or 2002 cannot read the A2003 binary, so they have to recompile for
their own. This implicit recompiling seems to contribute to the problem. We
now explicitly decompile, compact and recompile in the target version
whenever we switch versions.

2. Name AutoCorrect
You probably know all about this, but for anyone who's following the thread:
http://members.iinet.net.au/~allenbrowne/bug-03.html:

3. Crashes
Naturally. Example: the bug that crashes A2002 and A2003 if the field named
in the LinkChildFields of a subform control is not represented by a control
in the subform (and is therefore an AccessField object instead of a Textbox
object).

Another symptom of the same problem is breakpoints that don't break or don't
clear.

HTH


Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5651
by: John | last post by:
(access 2002) Anyone have any suggestions as to what may be causing access to not save form changes after I "tell" it to, exit database, then re-open later to discover the changes had not been saved (or somehow reverted). BUT, new form module code is saved. Example: created txtTitle control on form. Create AfterUpdate event code for txtTitle. Save form. Close database. Later...Open database, open form, txtTitle not there but its event...
3
1183
by: Anil | last post by:
How same functionality can be given to mulitiple forms in a VB.Net project? e.g. Suppose on each form, toolbar is present. If we click on New button then Add, Edit button gets disabled and Save, Cancel button is enabled. If we click on Save button, records gets saved. In short how the generelized code can be written?
1
5745
by: garry.oxnard | last post by:
Can anyone help me to solve a problem which involves switching from Access to Excel (then back to Access) programatically please? I have an Excel template which, on open, also opens an Access database - containing a list of addresses. Sequence of events is = (1) Excel template opens in its default XXX.xls filename. (2) Code runs to save the spreadsheet as XXX.xls. (3) User clicks a button to open an Access database containing an
3
2212
by: RobEveryThingIsPossible | last post by:
IN VISTA MS Access 2000 Printer Settings Not Saving With Vista Bus. The printer settings (Label or Env.) keep on change back to another setting after saving them on a report or form, when viewing them on other Vista computers. I have tried many things see Example: Open my report in Design mode. Select Page Setup. On the Page tab, alongside Use Specific Printer, press the Printer button. Having selected your printer, press Properties....
0
9799
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
9649
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
10515
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...
1
10554
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9338
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
7761
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
5799
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3985
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3084
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.