Is my best plan of attack here using
I have a combobox with 40 possible options in it. Based off the selection in the combo box I need to open a file browser to a specific folder. What seems most logical to me is to do
Currently the empolder is not stored in a database anywhere it is a alpha-numeric combo that a supervisor created.
Code:
If .... then....else....end if
I have a combobox with 40 possible options in it. Based off the selection in the combo box I need to open a file browser to a specific folder. What seems most logical to me is to do
Code:
'Declared Public in diff module
Public FullAddress As String
Private Function OpenFolder(name As String)
Dim staticFolder, empolder As String
staticFolder = "C:\Personel\Employees\"
If name = "James" Then
empolder = "J23815"
FullAddress = staticFolder & empolder & "\" & Year(Now) & "\"
End If
if name = "Rachael" Then
empolder = RC9291"
FullAddress = staticFolder & empolder & "\" & Year(Now) & "\"
End If
End Function
Currently the empolder is not stored in a database anywhere it is a alpha-numeric combo that a supervisor created.