473,486 Members | 2,394 Online
Bytes | Software Development & Data Engineering Community
Create 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 1562
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.com...
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*********@SeeSig.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
5581
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...
3
1162
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,...
1
5715
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...
3
2191
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...
0
7105
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
6967
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
7180
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...
1
6846
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...
0
7341
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...
0
5439
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,...
1
4870
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
4564
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...
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.