Results 1 to 3 of 3
  1. #1
    Esmatullaharifi is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2014
    Posts
    40

    Question Creating a VBA code

    I have built a database splitted to front end and back end but whenever I change the path of folder the front end is not opening because of path.


    Question is here how I can create a VBA code that whenever the path error message displayed it runs and ask from user for the new location to connect to the back end database. Please help to solve this issue.
    Thanks.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Why are you changing path?

    If this db will be located on a network server for multiple users, recommend UNC (Universal Naming Convention) pathing for the table links. Review:
    http://forums.aspfree.com/microsoft-...tc-324677.html
    http://forums.aspfree.com/microsoft-...ue-323364.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    I also have to ask...WHY? Why are you changing paths often enough to warrant having a special procedure, in place, to enter the new one? After a dozen years of contributing, here and on half-a-dozen other Access forums, I can tell you that there are very few truly unique requirements out there, and I have never seen this one before. I'm not saying that you don't have a valid reason for needing this, just, as I said, really interested in knowing the why!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Creating code for a password form
    By sevanty7 in forum Access
    Replies: 1
    Last Post: 05-02-2013, 10:52 AM
  2. Issue creating a table in code
    By Newby in forum Access
    Replies: 5
    Last Post: 12-27-2012, 03:00 PM
  3. VBA code for creating new record
    By Naveen Marapaka in forum Programming
    Replies: 3
    Last Post: 12-23-2012, 02:13 PM
  4. Creating 'Common' VBA code
    By Nevsky78 in forum Programming
    Replies: 4
    Last Post: 06-18-2012, 02:07 AM
  5. Creating Query from Code, Concatenate fields
    By eww in forum Programming
    Replies: 5
    Last Post: 07-18-2011, 02:19 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
  •  
Other Forums: Microsoft Office Forums