The .InitialView Property must be the first in the list. Here is some code from Stack Overflow. I added the .InitialView to several place in the
"With Statement" and finally at the top. And it worked.
I restarted Access after every change. This is important if you don't have the force close code writen, but I was troubleshooting so I was trying a tight control group.
Code:
Private Sub cmdOpenDialog_Click()
Const msoFileDialogFilePicker As Long = 1
Dim objDialog As Object
Set objDialog = Application.FileDialog(msoFileDialogFilePicker)
With objDialog
.InitialView = 6
.AllowMultiSelect = False
.Show
If .SelectedItems.Count = 0 Then
MsgBox "No file selected."
Else
Me.FileNameTextBox.Value = Dir(.SelectedItems(1))
End If
End With
End Sub
The .InitialView Property must be the first in the list. Here is some code from Stack Overflow. I added the .InitialView to several place in the
"With Statement" and finally at the top. And it worked.
I restarted Access after every change. This is important if you don't have the force close code writen, but I was troubleshooting so I was trying a tight control group.
Code:
Private Sub cmdOpenDialog_Click()
Const msoFileDialogFilePicker As Long = 1
Dim objDialog As Object
Set objDialog = Application.FileDialog(msoFileDialogFilePicker)
With objDialog
.InitialView = 6
.AllowMultiSelect = False
.Show
If .SelectedItems.Count = 0 Then
MsgBox "No file selected."
Else
Me.FileNameTextBox.Value = Dir(.SelectedItems(1))
End If
End With
End Sub
Sounds like I should be expecting an email from Gina to the MS Team about this. Please let us know how it goes with Win10 and Office 2016. Thanks for the update.
Sounds like I should be expecting an email from Gina to the MS Team about this. Please let us know how it goes with Win10 and Office 2016. Thanks for the update.
I guessing not so much. Her thinking is no one needs it. For everyday Email, I would agree.
But, this is a text message processor, text messages contain a lot of pic attachments. The truth is, I'm moving on past this. User will just have to right click in the dialog box to see the thumb nails.
I guessing not so much. Her thinking is no one needs it. For everyday Email, I would agree.
But, this is a text message processor, text messages contain a lot of pic attachments. The truth is, I'm moving on past this. User will just have to right click in the dialog box to see the thumb nails.