Results 1 to 5 of 5
  1. #1
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568

    Macro or code to spread DSN into every computer

    Hi Guys,

    i am wondering how it is the best way to provide each computer within DSN and do it programatically.

    Do you have maybe code or example how to do it?
    I was thinking about VBA code to do it but i do not know...

    Best,


    Jacek

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You can link with a file DSN stored on the server or use DSN-less connections, like:

    http://www.accessmvp.com/djsteele/DSNLessLinks.html
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Hi pbaldy.

    thank you!

    Regarding to this topic:

    https://www.excelforum.com/excel-pro...ml#post4869827

    It is better to use DSN connections.
    I can use DSN less connections for postgresql but it depends on bits (32 or 64 bit).

    How to use DSN stored on the server?
    I have to create system dsn on server yes?

    Best,
    Jacek

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I have no experience with postgresql. For SQL Server I used to create a file (not system) DSN on the server and use it when linking tables on my development computer. I didn't have to do anything on user computers.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Thank you pbaldy.

    Understand.

    But here i will be reading into Excel so i have to create DSN or i think better maybe hardcoded driver in VBA.

    Hmm i do not know it yet...

    Best,
    Jacek

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 03-08-2017, 05:42 PM
  2. Replies: 2
    Last Post: 12-07-2014, 08:33 PM
  3. Replies: 4
    Last Post: 01-24-2013, 06:30 PM
  4. Replies: 4
    Last Post: 09-18-2012, 08:49 AM
  5. Computer locks on a code error
    By gg80 in forum Programming
    Replies: 6
    Last Post: 05-17-2011, 03:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums