That's the way to go 'FancyPrairie'!
Anyway Trudye, here's a shrinked code extraction which will copy the .mde to the individual user's default folder(MyDocs) when there's a new version, placing also a shortcut to his desktop.
'------ Add following code 'OnOpenForm' to a kind of login form
Dim db As Database, Source, strBackEnd As String, Path As String
Dim wsh As Object
Dim Shortcut As Object
Dim strShortCutName As String
Dim strCurrPrjMDe, strLocalMDe, strosshell, fc
Dim rstVs, rstAu As DAO.Recordset
Set db = CurrentDb
Set rstVs = db.OpenRecordset("tbl_Settings", dbOpenDynaset) 'tbl settings has columns [Descr],[Object]
Set rstAu = db.OpenRecordset("tbl_Settings", dbOpenDynaset)
rstVs.FindFirst "[Descr] = 'Version' " 'Search current version
If rstVs!Object = "version 1.xx.xx" Then
Else 'Start AutomaticUpdate Here
rstAu.FindFirst "[Descr] = 'AutomaticUpdatesFE' "
If rstVs!Activ = True Then 'Rule Activ?
Set wsh = CreateObject("wscript.shell")
strCurrPrjMDe = (Left(CurrentProject.name, (Len(CurrentProject.name) - 1))) & "e" '= Current project. it takes the mde; no mdb
strShortCutName = (Left(CurrentProject.name, (Len(CurrentProject.name) - 3))) & "lnk" '= prepare shortcut
strLocalMDe = Application.GetOption("Default Database Directory") & (Left(CurrentProject.name, (Len(CurrentProject.name) - 1))) & "e" ' = destination folder eg My Documents
strosshell = "MSaccess.exe " & Chr(34) & strLocalMDe & Chr(34) ' copies the .mde in the indivicual LOCAL My Documents
Set fc = CreateObject("Scripting.FileSystemObject")
MsgBox ("Downloading new version; pls wait while downloading your new local version.")
If (CurrentProject.Path & "\") = Application.GetOption("Default Database Directory") Then '
Else
fc.CopyFile CurrentProject.Path & "\" & strCurrPrjMDe, Application.GetOption("Default Database Directory") & strCurrPrjMDe
Set oShell = CreateObject("wscript.shell")
oShell.Run (strosshell)
Set oShell = Nothing
Set Shortcut = wsh.CreateShortcut((GetSpecialFolder(&H10)) & strShortCutName) 'Puts shortcut on desktop
Shortcut.TargetPath = strLocalMDe
Shortcut.WorkingDirectory = (Application.GetOption("Default Database Directory"))
Shortcut.Description = "Shortcut AutoCreated; cfr tel Ref ***"
Shortcut.Arguments = strLocalMDe
Shortcut.Save
DoCmd.Quit
End If
End If
End If
'-------End
'Code works in Access2K, AccessXP
'FYI, Libraries used in my curr proj are
'Visual Basic for Applications
'Microsoft Access 9.0 Object Library
'Microsoft ActiveX Data objects 2.1 Libr
'Microsoft DAO 3.6 Obj Libr
'Microsoft Outlook 9.0 Obj Libr 'No need for above code
'OLE Automation
'Microsoft Scripting Runtime '= Needed !!!
'Microsoft Excel 10.0
When you always place the newest version of the .mde on a central place, and you call a recordset referring to that place, + modify above code to it, then you have what you required.
Have lots of fun; greetz to all!