General discussion
-
CreatorTopic
-
March 29, 2000 at 3:13 am #2081752
Conversion of Access 97 to 2000
Lockedby mcorr · about 24 years, 8 months ago
I have a fully functioning Access 97 application, but when I try to convert it to Access 2000 I get several errors “There was an error…converting form x.” and then “The VB for A project in the database is corrupt.” Of course MSDN has nothing about this problem, so has anyone had similar experiences and maybe a solution?
I am using Access 2000 version 9.0.2720 (latest patch I believe) and the existing database was created in Access 97 SR-2b and not encrypted.
Topic is locked -
CreatorTopic
All Comments
-
AuthorReplies
-
-
March 29, 2000 at 5:54 am #3896476
Conversion of Access 97 to 2000
by larry h. · about 24 years, 8 months ago
In reply to Conversion of Access 97 to 2000
I had a similar problem moving an Access 2 database into Access 97. In my case the problem stemmed from changes to VBA between the two versions. One of the variable names in the old version was now a reserved name in Access 97. Another possiblityis that you were using a “legacy” function that has been replaced, and Access 2000 no longer supports it.
-
June 5, 2000 at 2:41 am #3894393
Conversion of Access 97 to 2000
by mcorr · about 24 years, 6 months ago
In reply to Conversion of Access 97 to 2000
I don’t know of any unsupported functions in Access 2k like that.
-
-
March 29, 2000 at 6:15 am #3896475
Conversion of Access 97 to 2000
by mcorr · about 24 years, 8 months ago
In reply to Conversion of Access 97 to 2000
>I had a similar problem moving an Access 2 database into Access 97.
I am going in the other direction, which should work except for the few exceptions mentioned in the help. But the form is a simple splash form with two labels and an image, and it does nothing but close itself. I also get an error on a straightforward entry form.>Another possiblity is that you were using a “legacy” function that has
>been replaced, and Access 2000 no longer supports it.
Nope, checked the list, andeverything I am using should be supported.Thanks, Chris
-
June 5, 2000 at 2:41 am #3894394
Conversion of Access 97 to 2000
by mcorr · about 24 years, 6 months ago
In reply to Conversion of Access 97 to 2000
-
-
March 30, 2000 at 12:20 am #3896409
Conversion of Access 97 to 2000
by klennon-wf · about 24 years, 8 months ago
In reply to Conversion of Access 97 to 2000
One thing that I ran into was that Access 2000 is now default with ADO instead of the old DAO – have you verified references? If the references are correct then I would reevaluate the DAO code in your modules and/or form events.
-
June 5, 2000 at 2:41 am #3894395
Conversion of Access 97 to 2000
by mcorr · about 24 years, 6 months ago
In reply to Conversion of Access 97 to 2000
I really don’t use all that much of DAO; mostly I used queries to do that sort of thing.
-
-
March 30, 2000 at 11:14 am #3896367
Conversion of Access 97 to 2000
by labinter · about 24 years, 8 months ago
In reply to Conversion of Access 97 to 2000
Yo tengo experiencias similares con la conversion de funciones del SQL como Format (); Right$() y Left$ () en las consultas y adm?s en la conversi?n de gr?ficos. No poseo experiencias como las tuyas, pero si te comento que en muchas ocasiones he tenido que reprogramar las rutinas bajo Access 2000 ya que la b?squeda de soluciones ma llevaba m?s tiempo, y tampoco he encriptado mis programas.
Suerte !!!
Sorry for the spanish language. If you have problems to translate this, tell me.
My name is Ricardo from Argentina
By…-
June 5, 2000 at 2:41 am #3894396
Conversion of Access 97 to 2000
by mcorr · about 24 years, 6 months ago
In reply to Conversion of Access 97 to 2000
Hablo espanol un poquito, pero su somentos no ayudame. Gracias.
-
-
April 4, 2000 at 8:39 pm #3896195
Conversion of Access 97 to 2000
by joe giaquinto · about 24 years, 8 months ago
In reply to Conversion of Access 97 to 2000
1. As mentioned before, check the references. For example, Access 97 uses the 8.0 object library while Access 2000 uses 9.0. In the VB editor, check for missing references under Tools/References. You can re-reference the new objects by clicking the checkbox next to the appropriate object.
2. Here’s a syntax gotcha…
For Access 97 (DAO 2.5x/3.5x): OpenDatabase
For Access 2000 (DAO 3.6x): DAO.OpenDatabase3. Try rebuilding the project by exporting your data, forms, modules and then importing them into the new DB.
4. Use late binding (create objects as needed rather than explicitly referring to their object libraries.)
5. Avoid running 97 and 2000 on the same machine.
-
June 5, 2000 at 2:41 am #3894397
Conversion of Access 97 to 2000
by mcorr · about 24 years, 6 months ago
In reply to Conversion of Access 97 to 2000
1. Already did that, didn’t help.
2. Don’t use direct DB access, used queries instead.
3. I tried that, but it gave the same error on the splash screen.
4. I am familar with this concept in other more OO languages, but how does this apply here? Do you create and place the buttons run time? I didn’t really use any structures or user-defined objects.
5. Of course, that would be against the Will of Bill.
-
-
April 4, 2000 at 9:02 pm #3896194
Conversion of Access 97 to 2000
by fschmude · about 24 years, 8 months ago
In reply to Conversion of Access 97 to 2000
Did you compact the database before converting? This is necessary.
-
June 5, 2000 at 2:41 am #3894398
Conversion of Access 97 to 2000
by mcorr · about 24 years, 6 months ago
In reply to Conversion of Access 97 to 2000
Of course
-
-
April 8, 2000 at 4:42 am #3896707
Conversion of Access 97 to 2000
by dposton · about 24 years, 8 months ago
In reply to Conversion of Access 97 to 2000
If you want to keep your code intact
Do this
Add DAO to each Dimensioned statement
like so:
Dim rst as DAO.Recordset
instead of
Dim rst as Recordset
Make sure you have the DAO 3.6 version checked as suggested above.-
June 5, 2000 at 2:41 am #3894399
Conversion of Access 97 to 2000
by mcorr · about 24 years, 6 months ago
In reply to Conversion of Access 97 to 2000
Already mentioned twice above.
-
-
June 23, 2000 at 4:13 am #3783647
Conversion of Access 97 to 2000
by mcorr · about 24 years, 5 months ago
In reply to Conversion of Access 97 to 2000
I asked a similar question about a month ago, and the best responses are below. I was never able to convert the database, and just left it in 97. Good luck.
1. Compact database before converting.
2. Check DAO references: in 2000 all DAO references must be preceded by “DAO”. i.e. DAO.OpenRecordSet.
3. Try importing your old database into an empty 2000 database.
4. Don’t run Access 2000 and Access 97 on the same PC.
-
-
AuthorReplies