473,408 Members | 1,744 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,408 software developers and data experts.

Backwards compatibility

Hi Everyone:

I am experiencing a problem which may have something to do with
different Access versions.

Approximately 4 years ago, I wrote a small program for a law firm.
They recently contacted me requesting some updates. When I attempted
to install these updates I experienced some problems. Unfortunately, I
cannot recall the exact error but it occurred when attempting to open
the main form of the program.

I believe I may have isolated the problem down to one line of code:

RunCommand acCmdRecordsGoToNew

This command is used to return to the current record after a requery.

I am currently using Access 2002 (10.6501.6735)SP3 to develop and/or
edit existing programs. This law firm, however, is still using Access
2000 (9.0.2720). Could this be the problem? And does anyone know of
alternative code to achieve the same result.

Thanking all in advance for responding. This newsgroup is great - I
have learn so much from it.

Regards,
Michael Baz

Nov 13 '05 #1
2 1592
Michael:

Not sure if this will help, but you can use the following to replace
your code:

DoCmd.GoToRecord , , acNewRec

I believe that the DoCmd action is considered 'newer' than the
RunCommand action, but I wouldn't stake my life on it.

HTH,
Jana

Nov 13 '05 #2
>
I am experiencing a problem which may have something to do with
different Access versions.
Yes, the above makes sense.

First, there are some new features. For example, the openreport got extra
features in a2002
(the model option for example)

I was under the impression that if you used a2000 file format, then the
extra features were not available (but, I am wrong!!).

You can likely develop on a2002, but right before you deploy, you need to do
a de-compile on your machine, and then re-compile the code on the target
computer. (or, have a machine on your location that has 2000 on it). You
likely should also be deploying a mde also.

So, I would compile your code on a a2000 box, as that is what the client is
running. It is indeed silly to risk your reputation, or the clients data
simply because you are mixing, and matching versions of ms-access.

I believe I may have isolated the problem down to one line of code:

RunCommand acCmdRecordsGoToNew


Hum, I never used the above form, and always used the docmand.GotoReocrd...

So, I like Jana's suggestion to use GoToReocrd.

You really don't want to start writing different code for each version...

You could also dry doing a de-compile right before you send it to the
client, but for safety, if you want to have any level of professionalism
here, you likely should de-compile (MUST DO!!), and THEN compile it in a2000
before you send it to the client. And, I have to assume you are using a
split database (or, do hey shut down the firm, and not use your software
while you work on it?).

You can read about splitting here, as this process helps the development
process, and also allows multi-user

http://www.members.shaw.ca/AlbertKal...plit/index.htm

You can read about de-compile here:
http://www.mvps.org/access/bugs/bugs0008.htm

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal
Nov 13 '05 #3

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

Similar topics

1
by: Jason Mobarak | last post by:
Greetings! Say that it's desirable to provide backwards compatibility for methods of an object, consider the case where... class Foo: def bar (self, a, b): pass ....is a defined class...
4
by: Nick Kerzman via MySQLMonster.com | last post by:
Any assistance would be greatly appreciated. I'm relatively new to working with MySQL. I exported my DB with phpMyAdmin 2.6.0-pl3 running MySQL 4.1.7 I'm trying to import it with phpMyAdmin...
0
by: flat_ross | last post by:
If there was one thing nice about "Binary Compatibility" in VB6, it would tell you at compile time that you changed your public interface. I am looking for the same functionality in .NET. I know...
7
by: Sonny | last post by:
I need to port a library that is written entirely in C to C++. The library is supported on quite a few platforms (windows, Solaris, Linux, AIX, HP-UX, OSX, etc...) and there's quite an existing...
2
by: Todd D. Levy | last post by:
I recently picked up a copy of Office 2003, but have installed it (replacing my existing installation of Office XP Pro) yet because... I am in the middle of a client project using Access 2002...
6
by: Neil Patel | last post by:
I have a log file that puts the most recent record at the bottom of the file. Each line is delimited by a \r\n Does anyone know how to seek to the end of the file and start reading backwards?
70
by: py | last post by:
I have function which takes an argument. My code needs that argument to be an iterable (something i can loop over)...so I dont care if its a list, tuple, etc. So I need a way to make sure that...
150
by: tony | last post by:
If you have any PHP scripts which will not work in the current releases due to breaks in backwards compatibility then take a look at http://www.tonymarston.net/php-mysql/bc-is-everything.html and...
1
by: Orestis Markou | last post by:
Hello, I'm the developer of PySmell ( http://github.com/orestis/pysmell ), a static analysis/intellisense provider for Python. I am targeting Python 2.4 code so I'm using the compiler package. ...
0
by: Terry Reedy | last post by:
Orestis Markou wrote: My impression is that the 2.6 ast package is quite different from the 2.4 compiler package, but I have not looked at it (in its 3.0 version) yet. If the 2.4 code you are...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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
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...

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.