Results 1 to 21 of 21

Thread: No compatability VB 6.0 with MS Access

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    17

    Resolved No compatability VB 6.0 with MS Access

    I've got MS Access 2002 and VB 6.0. Using Datacontrol in my project in DataName properties I show the path of db which I want to connect. But "Unrecognized Database format c:\....bla bla bla" appears all the time. I'm newbie in VB programming and I ask for your advise. So far I've downloaded MDAC version 2.8 but no result. I think my problem is about compatability the latest Access version with VB 6.0 isn't it?
    Thaks in advice
    Last edited by kedaxx; Dec 29th, 2004 at 09:49 AM.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: No compatability VB 6.0 with MS Access

    Verify that your db is not corrupted. In Explorer double-click your db and see
    if opens up correctly without any errors. If it gives the same error then you
    need to repair it if possible.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: No compatability VB 6.0 with MS Access

    I believe MDAC 2.8 is for Access 2003 so try using previous version instead if you have one or download from MS and install it first.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: No compatability VB 6.0 with MS Access

    Hey Rhino, isnt MDAC still backwards compatible in 2.8?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: No compatability VB 6.0 with MS Access

    No, not necessary - esspecially most latest and greatest ...

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: No compatability VB 6.0 with MS Access

    Good thing I have not upgraded from 2.7 SP1 Refresh.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: No compatability VB 6.0 with MS Access



    EDIT: you may download and install it as multiple versions can co-exist without any problems (at least I haven't noticed any so far).
    Last edited by RhinoBull; Dec 25th, 2004 at 03:25 PM.

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

    Re: No compatability VB 6.0 with MS Access

    kedaxx,

    You might want to re-install and check the JET engines you are attempting to use. You should be using JET 4.0

  9. #9
    Registered User HellRaider's Avatar
    Join Date
    Sep 2003
    Posts
    70

    Re: No compatability VB 6.0 with MS Access

    I had a problem once with reading a database so i converted it to the previous version and it worked fine. Hope it helps.

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    17

    Smile Re: No compatability VB 6.0 with MS Access

    Quote Originally Posted by HellRaider
    I had a problem once with reading a database so i converted it to the previous version and it worked fine. Hope it helps.
    OK, thank you very much! But how am I going to convert it to a previous version? Would u be so kind to explain that with more details, please!! As I said I'm newbie...
    kedaxx :-)

  11. #11
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: No compatability VB 6.0 with MS Access

    Nooooo !
    You don't have to do that at all. Don't downgrade your environment because of some drivers.
    As I said just get previous version of MDAC 2.5 or 2.7 (I believe that's the one) from MS and install it. When you done change refences in your project to the appropriate library.

    Here is link to download MDAC 2.7 .

    Although, as randem suggested make sure you have JET 4.0 installed.
    Here is a link to download JET 4.0 .

    Good luck to you.

  12. #12

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    17

    Smile Re: No compatability VB 6.0 with MS Access

    hello RhinoBull,
    i've downloaded the two required files and installed them on my PC, but the same message in run-time VB "..Unrecognized db format.." appeared again. I've created a new db in Access 2002 (after installation two files) , restarted my PC but alas...No resault. Just after convertion my db to Access97 my project ran the application.
    P.S. I'v got VB98, is it very old for Access 2002?
    Thanks a ot anyway
    kedaxx
    Last edited by kedaxx; Dec 26th, 2004 at 09:44 AM.

  13. #13
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: No compatability VB 6.0 with MS Access

    Hmmm ..
    According to my research Access 2002 is defaulted to Access 2K format which means you might need MDAC 2.6 or 2.5 version (they both work with MS Access 2K fine). Get it from MS but as I said do not downgrade your database.

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

    Re: No compatability VB 6.0 with MS Access

    kedaxx,

    What does your connection string look like?

  15. #15

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    17

    Re: No compatability VB 6.0 with MS Access

    Quote Originally Posted by randem
    kedaxx,

    What does your connection string look like?
    i'm sorry, randem, but I dont know how to answer on your question (i know it sounds stupid) I have got just couple of months of experience in VB, thats all very interesting & very new for me!!
    kedaxx

  16. #16
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: No compatability VB 6.0 with MS Access

    So how are you opening your DB from VB?

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  17. #17
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Re: No compatability VB 6.0 with MS Access

    He is using a data control, so probably he just browsed to the database in the properties window.

    I don't know if this old datacontrol can be used for newer versions of access.
    If so, then probably the reference to DAO is to version 3.5 or 3.51 and not to 3.6.

    Check your DAO references. If a version below 3.6 is referenced, uncheck it, and check DAO 3.6

    If this still doesn't work, use an ADO datacontrol instead, or even better, don't use datacontrols at all but write your own code to handle the data manipulation.
    Frans

  18. #18

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    17

    Re: No compatability VB 6.0 with MS Access

    Quote Originally Posted by techgnome
    So how are you opening your DB from VB?

    Tg
    hello,
    OK, this is an easy question!
    1-I create in Access a db with three fields(name,surname, salary -for example)
    2-I create in VB a form with database control and three txtBoxes & couple of cmd buttons
    3-in DatabaseName database control properties I show the path of my db created in Access
    4-and in RecordSource I show the name of my table -(Salary)
    5-txtName/Surname/salary in DataField properties I define what kind of data they r going to contain
    5-run the project
    i hope this is enough to understand the string connection i've got because English is not my mother language
    kedaxx

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

    Re: No compatability VB 6.0 with MS Access

    kedaxx,

    Not as easy as you think. What you need to do is post your project so we can take a look.

  20. #20

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    17

    Re: No compatability VB 6.0 with MS Access

    [QUOTE=Frans C]He is using a data control, so probably he just browsed to the database in the properties window.
    hello Frans C,
    you were right about "browsing", but i'm not "he" i'm "she" .And it seems i've solved the problem. i've picked up an old good tutorials by Chuck Easttom where he shows how to create a db by using Add-ins->Visual data Manager. So i've got what i wanted (maybe this is not the best way to deal with db, but its OK for now...)
    And a bit about ADO...I followed your instructions "check-uncheck 3.6...", and after the OK button has been clicked the message appears:"Name conflicts with existing module, project or object library."
    VB is more complicated thing than I thought. I've got to learn a lot about different subjects, etc. I spent 5 days to understand why Access2002 doesnt work with VB 6. But thanks to you guys for being helpful. I've learned a lot on the forum. I wish you all Merry Christmas and Happy New Year!
    Bye for now
    kedaxx

  21. #21
    Banned
    Join Date
    Dec 2004
    Posts
    174

    Re: No compatability VB 6.0 with MS Access

    edit your first post and add the green checkmark

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