I got it!!!!
Can you explain API? I have seen it talked about but have no idea what it is or how it works.
Code:
Private Sub Command458_Click()
Dim f As Object
Dim strSelectedpath As String
Dim strSelectedFile As String
Dim varItem As Variant
Set f = Application.FileDialog(3)
f.AllowMultiSelect = False
If f.Show = -1 Then
For Each varItem In f.SelectedItems
strSelectedpath = varItem & "#" & varItem
strSelectedFile = Split(strSelectedpath, "\")(UBound(Split(strSelectedpath, "\")))
Next varItem
Me![txtSelectedFile] = strSelectedpath
Me![txtFileName] = strSelectedFile
End If
Set f = Nothing
End Sub