Results 1 to 4 of 4

Thread: [RESOLVED] Linking Access databases with DAO

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Location
    Norway
    Posts
    27

    Resolved [RESOLVED] Linking Access databases with DAO

    I need some help to deploy my VB6 application working with Access databases. I want the user to have the possibility to install the program and the databases in any directory. How do I direct the links in the DAO to the databases before exporting? Do you recommend to use the internal packing wizard, or is it better to use another?

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Linking Access databases with DAO

    Inno Script and Inno Setup let you deploy where you want, plus includes the options for desktop icons and Quick Launch shortcuts automatically.

    You can use APP.PATH to get the folder that they have installed into, or append any other folders to it. APP.PATH & "\Databases\"

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

    Re: Linking Access databases with DAO

    You could set your DAO OpenDatabase argument to something like dglienna posted using the App.Path & "\YourDBName.mdb". There is no need to recreate everything in another installer program as this issue is a programming issue and not a packaging problem.
    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

  4. #4

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Location
    Norway
    Posts
    27

    Re: Linking Access databases with DAO

    Thanks for your advice. I hope I will manage to link them the way they should with the method described.
    Last edited by Osprey; Nov 18th, 2005 at 08:07 PM.

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