Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2009
    Location
    Wimbledon, SW London, UK
    Posts
    19

    Programming the BackEnd path

    I'm developing a FrontEnd/BackEnd application for a school.

    Naturally the path to their version of the BackEnd is different to the path on my development laptop.

    How do i tell the FrontEnd where to look for the BackEnd? If i just give them my copy of Front + Back, then the Linked table manager is looking a path that only exists on my machine.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Here's a link to a good solution. http://www.mvps.org/access/tables/tbl0009.htm

  3. #3
    Join Date
    Nov 2009
    Location
    Wimbledon, SW London, UK
    Posts
    19
    I think there must be a couple of functions missing from that code, namely the underlined :

    Code:
    strFilter = ahtAddFilterItem(strFilter, _
                        "Access Database(*.mdb;*.mda;*.mde;*.mdw) ", _
                        "*.mdb; *.mda; *.mde; *.mdw")
    and

    Code:
    fGetMDBName = ahtCommonFileOpenSave(Filter:=strFilter, _
                                    OpenFile:=True, _
                                    DialogTitle:=strIn, _
                                    Flags:=ahtOFN_HIDEREADONLY)
    because i get compiler errors.

    Also i'm not really sure that's what i want. I simply want to specify a different path (to the backend) depending on whether it's my laptop or the "client's" desktop pc that it's running on.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The link stated you need to have this code as well:
    http://www.mvps.org/access/api/api0001.htm

  5. #5
    Join Date
    Nov 2009
    Location
    Wimbledon, SW London, UK
    Posts
    19
    Ah no, that's not what i want. But thanks for the link though.

    So can anyone suggest a way to do this? I simply want a way for the Front End to pick up the Back End from a different location if it's running on the client's machine rather than my own.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The links I pointed to either refreshes the current links or if the BackEnd is not found, bring up a form that allows the user to locate the BackEnd, and then refresh the links. Unless you hard code the links I doubt you could get a much more flexible or simple solution.

  7. #7
    Rainlover's Avatar
    Rainlover is offline Expert
    Windows XP Access 2003
    Join Date
    Nov 2009
    Location
    Queensland Australia
    Posts
    691
    There is a Dos Command that might help.

    First Create a Folder on your C:\Drive and name it with the Letter of the Drive that your Client uses.

    eg R

    Then run this command.

    SUBST R: C:\R

    This will create a Virtual Drive on your machine which you can Link to. Then when you send the client an update the Fornt End is already linked to the correct Drive letter.

    In my example I am assuming your Client stores the back end on the R:\Drive.

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

Similar Threads

  1. Access as backend for Web Pages
    By LornaM in forum Programming
    Replies: 10
    Last Post: 05-04-2009, 08:02 AM
  2. relink to relative path TXT data files
    By tobynegus in forum Programming
    Replies: 0
    Last Post: 08-19-2008, 10:10 AM
  3. lookup values in backend tables
    By deb56 in forum Database Design
    Replies: 1
    Last Post: 01-23-2008, 11:12 AM
  4. File path name using Transfer spreadsheet
    By JohnN in forum Import/Export Data
    Replies: 0
    Last Post: 11-14-2005, 06:57 AM
  5. How get path of executing database?
    By mscertified in forum Forms
    Replies: 3
    Last Post: 11-09-2005, 03:56 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