title: How to insert entire file path into text box, not just filename? Access 2010
body: <p>I am currently using the following code to select a file and add its path to a text box.</p>
  
  <pre><code> Dim objDialog As Object
  
   Set objDialog = Application.FileDialog(3)
  
   With objDialog
     .AllowMultiSelect = False
     .Show
     If .SelectedItems.Count = 0 Then
       MsgBox "No file selected."
     Else
       Me.FileNameTextBox = Dir(.SelectedItems(1))
     End If
   End With
   Set objDialog = Nothing
  </code></pre>
  
  <p>How do I make it so the entire file path is inserted, not just the file name?</p>