Results 1 to 11 of 11
  1. #1
    Remster is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Sep 2010
    Posts
    317

    Distributing the front end versus distributing a shortcut

    I've created a split database that will be used by thirty or forty people in my organisation, probably no more than two or three at a time. My preference is to keep a single copy of the front end in a shared folder (so I can modify it without having to involve the users) and to distribute a shortcut to it. However, everything I read about split databases talks about distributing the front end itself. Why, if at all, is distributing the front end better than distributing a shortcut?

  2. #2
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Less possibility of corruption, someone locking the copy on the network, etc. What I do is have a VB exe as the shortcut for users. What this exe does when they click is check to see if the specific appllication folder is created on their C: drive and if not it will create it(this is for first time users). Then it will copy the FE database from network folder to that specific folder on their C: drive, then I go find their version of MS Access on their PC and open the database. This way I can make a copy of the FE database to make changes, testing, etc. while the users continue to use the current version. And when my changes are done and it is ready, I just copy it over the live FE databse on the network. So next time the users click the exe shortcut, they will always get the latest version.

  3. #3
    Mickjav is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Location
    Margate, Kent
    Posts
    123
    One user one copy of front end

  4. #4
    Remster is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Sep 2010
    Posts
    317
    Great advice from both of you. Bulzie, any chance you could share the file or your code?

  5. #5
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Bulzie's suggestion is definitely the way to go. I do something very similiar. If you have multiple users using the same copy of the front end simultaneously, that really defeats the purpose of splitting the database and can still run into the corruption issues.

    Bulzie's suggestion gives you the benefits of running it from a shortcut, while gaining the benefits of everyone having their own copy, to avoid corruption. And you don't have to worry about rolling out changes/new versions to users. It is seemless, and doesn't require any extra effort on the part of you or users.

  6. #6
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Absolutely. Never allow users to share the same copy of the FE. You will definitely get corruption at some point.

    The only difference in my approach is that the desktop shortcut is to a starter app which looks like a splash screen.
    This checks whether a newer version is available on the network.
    If so, that is first downloaded before the main app is opened and the starter app quits automatically.
    Again it is seamless and end users are not aware how it works
    I use that approach rather than download a fresh copy of the FE every single time the app is run.
    This makes the startup time much faster
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  7. #7
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    It's a VB exe, not Access. Might be better ways to do this these days, this is how we created it way back so still use it as it works. On Finding Access, it looks in that order of "If" Statements so the first version of MS Access it finds it will open.


    Private Sub Form_Load()
    On Error GoTo ErrTrapAppActivate "Therapy Scheduling System" '** checks to see if the app is open already **
    Form1.Hide
    MsgBox "The Therapy Scheduling System is already open.", vbSystemModal
    Unload Form1
    Set Form1 = Nothing
    End

    CopyAndLoad:
    If Dir("c:\PTS", vbDirectory) = "" Then MkDir ("c:\PTS") '** checks for the directory on PC, creates it if not there and copies the FE database to that location **
    FileCopy "\\prog\apps\PTScheduling\PTScheduler.accdb", "c:\PTS\PTScheduler.accdb"

    If Dir("C:\Program Files (x86)\Microsoft Office\OFFICE12\MSACCESS.EXE", vbDirectory) <> "" Then '** finds MS Access and opens the database **
    Shell "C:\Program Files (x86)\Microsoft Office\OFFICE12\MSACCESS.EXE c:\PTS\PTScheduler.accdb", vbNormalFocus
    Else
    If Dir("C:\Program Files\Microsoft Office\OFFICE12\MSACCESS.EXE", vbDirectory) <> "" Then
    Shell "C:\Program Files\Microsoft Office\OFFICE12\MSACCESS.EXE c:\PTS\PTScheduler.accdb", vbNormalFocus
    Else
    If Dir("C:\Program Files\Microsoft Office\Office14\MSACCESS.EXE", vbDirectory) <> "" Then
    Shell "C:\Program Files\Microsoft Office\Office14\MSACCESS.EXE c:\PTS\PTScheduler.accdb", vbNormalFocus
    Else
    If Dir("C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE", vbDirectory) <> "" Then
    Shell "C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE c:\PTS\PTScheduler.accdb", vbNormalFocus
    Else
    If Dir("E:\Program Files (x86)\Microsoft Office\Office12\msaccess.exe", vbDirectory) <> "" Then
    Shell "E:\Program Files (x86)\Microsoft Office\Office12\msaccess.exe c:\PTS\PTScheduler.accdb", vbNormalFocus
    Else
    MsgBox "Could Not Find Microsoft Access Progrm. Please contact IS Programming Group.", vbSystemModal
    End If
    End If
    End If
    End If
    End If
    Unload Form1
    Set Form1 = Nothing
    End
    Exit Sub
    Resume

    ErrTrap:
    Select Case Err.Number
    Case 5
    GoTo CopyAndLoad
    Case 70
    MsgBox "Could Not Copy Current Version", vbSystemModal
    Unload Form1
    Set Form1 = Nothing
    End
    End Select
    End Sub

  8. #8
    Remster is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Sep 2010
    Posts
    317
    Many thanks for that. Anyone else willing to share?

  9. #9
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Have a look at this lengthy thread https://www.accessforums.net/showthr...+newer+version
    I would work through the thread for different methods. My approach is attached to posts #40 and #47
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  10. #10
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    Feel free to use my free utility http://forestbyte.com/ms-access-util...a-db-launcher/ that can distribute front-ends and also any additional files that might be needed locally by the users (such as Word mail-merge templates).

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  11. #11
    Remster is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Sep 2010
    Posts
    317
    Thanks to everyone who's offered a suggestion.

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

Similar Threads

  1. Replies: 2
    Last Post: 05-11-2018, 07:09 AM
  2. Distributing Records Equally by Value
    By JerBearMO in forum Programming
    Replies: 3
    Last Post: 02-26-2012, 03:09 PM
  3. distributing Access front ends
    By gunner in forum Access
    Replies: 10
    Last Post: 03-15-2011, 03:53 PM
  4. Distributing an Access App to the Masses
    By AccessGeek in forum Access
    Replies: 3
    Last Post: 03-03-2011, 08:58 AM
  5. Distributing Reports
    By zp18zp18 in forum Reports
    Replies: 3
    Last Post: 01-09-2011, 01:16 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