Results 1 to 15 of 15

Thread: Access version conversion

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Sudbury, Ontario, Canada
    Posts
    274

    Question

    Is it possible to convert an Access 2000 database to Access 97 using VB code?

  2. #2
    Guest

    Angry Yes, painfully

    Ok there is no way you can automatically do this

    Open both databases, and unfortunately read the data from each recordset in the 2000k database and write it to the 97 database.

    Just finished adding this facility to our product. Access is about the only office app that doesn't have an export to previous version option.

    Ours worked well....but....be careful of new data types in 2000, we didn't have this problem...but...it may be the case

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Sudbury, Ontario, Canada
    Posts
    274
    Thanks, but if that's the case I won't even bother. The database that I developed uses an Access 2000 database and my client has Access 97, so all I wanted to do was have them be able to open the database in Access 97.

  4. #4
    Guest

    Thumbs up Yeah had the same problem....damn

    Access97 will definitely not open Access2000 mdbs.

    Spent four hours writting the conversion utility to add to our product...complete waste of time....but at least the client was happy with us

  5. #5
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    Auckland, NZ
    Posts
    411

    On the topic...

    Although I didn't write an app that required the user to have Access 97 or Access2000, I have written an App that relies on the user having OLEDB3.51 or OLEDB4.0 available. I realise that OLEDB4.0 gets installed as part of Office 2000 (regardless of whether Access2000 is installed) so I was wondering if you guys know what (if anything) I can include in my distribution that will "upgrade" the customer to OLEDB4.0?

    My solution to date is to use an Access97 format DB and then the user can use either OLEDB3.51 or OLEDB4.0. Ideally, I'd like to detect all that for the user and offer an upgrade to OLEDB4.0. Then I could use Access 2000 format DB (its a standalone app).

    Any thoughts or clues?

    Paul Lewis

  6. #6
    New Member
    Join Date
    Dec 2003
    Location
    Midlands UK
    Posts
    13

    Re: Access version conversion

    Quote Originally Posted by dcarlson
    Is it possible to convert an Access 2000 database to Access 97 using VB code?
    It is possible to convert an Access DB from 2000 to 97, by adding the following reference to your project - Microsoft Access 11.0 Object Library

    Then create a function like so, you may want to put some exception handling in to check the DB is not open, and that the 2000 file exist and the 97 doesn’t etc.

    VB Code:
    1. Public Function ConvertDB(SourcePath As String, DestinationPath As String)
    2.  
    3.     Dim AccessObj As New Access.Application
    4.  
    5.     AccessObj.Application.ConvertAccessProject SourcePath, DestinationPath, acFileFormatAccess97
    6.    
    7.     Set AccessObj = Nothing
    8.  
    9. End Function

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Access version conversion

    dcarlson,

    Are you just attempting to convert data or Access code? If just data, Yes. But why? Are you coding in Access or VB. For VB doesn't need Access to connect to the tables and you can use any version of Access database you like.

  8. #8
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    Re: Access version conversion

    theres no way you can convert an ms2000 access file to 97. but if you're just trying to access it from your prog, you need not to do that.
    On error goto Trap

    Trap:
    in case of emergency, drop the case...

    ****************************************
    If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option.
    if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar

  9. #9
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Access version conversion

    You can convert an Access 2000 mdb to an Access 97 mdb (Data Only).

  10. #10
    Frenzied Member wiz126's Avatar
    Join Date
    Jul 2005
    Location
    Mars,Milky Way... Chit Chat Posts: 5,733
    Posts
    1,080

    Re: Access version conversion

    windsurfkid, Why in the world would you BUMP a 6!!! years old thread? it would be so much easer to just make a new one.....

    Anyway, d3gerald you can convert the data from 2000 to97
    1) If your post has been adequately answered please click in your post on "Mark Thread Resolved".
    2) If someone has been useful to you please show your respect by rating their posts.
    3) Please use [highlight="VB"] 'your code goes in here [/highlight] tags when posting code.
    4) Before posting your question, make sure you checked this links:
    MICROSOFT MSDN -- VB FORUMS SEARCH

    5)Support Classic VB - A PETITION TO MICROSOFT

    ___________________________________________________________________________________
    THINGS TO KNOW ABOUT VB: || VB Examples/Demos
    What are Classes?
    || -
    Where to place a sub/function?(global) || Webbrowser control

  11. #11
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Access version conversion

    I guess he can't be acused of not searching first!!!!

  12. #12
    Fanatic Member lerroux's Avatar
    Join Date
    Nov 2005
    Location
    Welcome to the darkside... we have cookies
    Posts
    646

    Re: Access version conversion

    does this mena that this 6 years old thread is not yet resolved? well here's what i think... for an access 2000 to 97 file... NO... for data only... YES... RESOLVED! now wasn't that easy...
    WARNING: Excessive coding is dangerous to your health... if symptoms persist insult your doctor...

  13. #13
    Frenzied Member wiz126's Avatar
    Join Date
    Jul 2005
    Location
    Mars,Milky Way... Chit Chat Posts: 5,733
    Posts
    1,080

    Re: Access version conversion

    look at this: http://office.microsoft.com/en-us/as...381541033.aspx
    there are going to be many problems converting it back from 2000 to 97.
    1) If your post has been adequately answered please click in your post on "Mark Thread Resolved".
    2) If someone has been useful to you please show your respect by rating their posts.
    3) Please use [highlight="VB"] 'your code goes in here [/highlight] tags when posting code.
    4) Before posting your question, make sure you checked this links:
    MICROSOFT MSDN -- VB FORUMS SEARCH

    5)Support Classic VB - A PETITION TO MICROSOFT

    ___________________________________________________________________________________
    THINGS TO KNOW ABOUT VB: || VB Examples/Demos
    What are Classes?
    || -
    Where to place a sub/function?(global) || Webbrowser control

  14. #14
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    Re: Access version conversion

    yeah i know that you can convert the data but not the file format itself
    On error goto Trap

    Trap:
    in case of emergency, drop the case...

    ****************************************
    If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option.
    if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar

  15. #15
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Access version conversion

    What?????

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width