Marshall Brooks
Active member
- Local time
- Today, 19:37
- Joined
- Feb 28, 2023
- Messages
- 748
So the BE is okay to be on a web-enabled network drive if the drive supports SMB protocol, correct? How would I verify whether it does or does not support that?
 How would I set that up? I'm thinking if I created a "test/dummy" BE on the network drive and had new copies of the FE to access that file instead of the real one ...You need a fatal interaction to prove the point.
Yes I am, it's on the home wired network, and is accessed by other users(mainly the wife!) on other machines when I am testing. It certainly doesn't download a copy to the local machine. It acts just like a file server.You are obviously not sharing the file with another user. SHARING is what this thread is about.
No I think it was a standard install. it works as both a File server, and has a Web based management interface, that I believe if I opened the ports on my router would allow external (User/Password protected) internet access to the same files.@Minty.
Are you saying that you managed to install the same drive using two different methods?
 
					
				Sub Error()
Const msoFileDialogFilePicker As Long = 3
Dim objDialog As Object
Set objDialog = Application.FileDialog(msoFileDialogFilePicker)
With objDialog
If .show = -1 Then 'Ok Pressed
    ' Do Something
Else ' Cancel Pressed
    Exit Sub
End if
End SubOption Compare Database
Option Explicit
Dim lngActivityCounter As LongPrivate Sub Detail_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
        lngActivityCounter = 0
End SubPrivate Sub Form_Timer()
    ' https://www.accessmvp.com/JConrad/accessjunkie/kickoff.html - Item 23 Kicks off if no mouse movement or Keyboard movement. and T2 Database - MB 8-Jul-2024.
    On Error GoTo form_timer_err
    Static last_ctl As String
    Dim curr_ctl As String
    curr_ctl = Nz(Me.ActiveControl.Name, "No Active Control")
    Me.TimerInterval = 30000 ' 30 seconds
    strResult = ""
    If last_ctl = "" Or last_ctl <> curr_ctl Then
        last_ctl = curr_ctl
        lngActivityCounter = 0
    Else
        lngActivityCounter = lngActivityCounter + 1
    End If
     '15 minutes = 900 sec (15 min x 60 sec/min)
     'After 15 minutes (900 sec/min) of no activity on this tab,
     'close this tab
     'TimerInterval=30 seconds, so 30 counts
     If lngActivityCounter >= 30 Then
        strResult = Dialog.Box(Prompt:="The <form name of inactive form> will close due to inactivity.\n\nClick OK to close immediately.\n\nClick Cancel to cancel closure." & "", Buttons:=(1 + 48), TITLE:="Inactivity Timeout", AutoCloseSec:="30")
            If strResult = vbOK Then
                DoCmd.Close acForm, Me.Name, acSaveNo
            Else
                lngActivityCounter = 0
            End If
     End If
form_timer_err:
  If Err = 2474 Then
    Resume Next
  End If
End Sub    With objDialog
        .AllowMultiSelect = False
        .TITLE = "Please browse for Draft PDF Document to send to review."
        .ButtonName = "Select"
        .Filters.Clear
        .Filters.ADD "PDF Files", "*.pdf"
        ' Typically Access will open the Documents folder and then the last selected folder.  The code below makes it open the writers folder initially and then the last used folder. Otherwise, initialFileName would ALWAYS open the writer folder.
        If FileDialogDisplayed = False Then
            .InitialFileName = Nz(ELookup("[Network_Path]", "[tblTeam]", "[Assignee] = '" & Assignee & "'"), "")
        End If
        If .show = 0 Then ' Cancel pressed
            Box ("No Files Selected. Exiting")
            Set objDialog = Nothing
            Exit Sub
        Else
            FileDialogDisplayed = True
            AttachFile = .SelectedItems(1)
'             https://stackoverflow.com/questions/12687536/how-to-get-selected-path-and-name-of-the-file-opened-with-file-dialog
             Dim FileNameOnly As String
             FileNameOnly = Dir(.SelectedItems(1))
'            If UCase$(Mid$(objDialog.SelectedItems(1), InStrRev(objDialog.SelectedItems(1), ".") + 1, Len(objDialog.SelectedItems(1)))) <> "PDF" Then
            If UCase$(Mid$(FileNameOnly, InStrRev(FileNameOnly, ".") + 1, Len(FileNameOnly))) <> "PDF" Then
                Box ("Selected file MUST be a .PDF File. Exiting.")
                Exit Sub
            End If
        End If
    End With 
					
				