Okay, here's your revised code. You can delete the Open_dir procedure. You would use strSelectedFile for the path to the selected file (as you should be able to make out in the code below):
Code:
Private Sub save_form_Click()
Dim fd As Object
Dim strSelectedFile
'….some code here (not posted)….
If MsgBox("Do you want to upload a file?", vbYesNo, "file") = vbYes Then
Set fd = Application.FileDialog(3)
path_dir = DLookup("path", "pratiche", "[id_pratica]='" & IDPRT & "'")
With fd
.Filters.Clear
.InitialFileName = path_dir
.Title = "Select File to Upload..."
.AllowMultiSelect = False
.Show
End With
If fd.SelectedItems.Count <> 0 Then
strSelectedFile = fd.SelectedItems(1)
End If
End If
If MsgBox("Do you want to add a new record?", vbYesNo, "continua") = vbYes Then
Call ClearForm
Else
DoCmd.Close
End If
End Sub