I am using VBA to create the file path located in the textbox. I have everything I need in the path except the last name.
D:\Users\druss\Lauren Concrete\Digtal Libary-DOT Paperwork\Drivers\Alberto\4132018TS.pdf (This is missing last name "Saenz")
D:\Users\druss\Lauren Concrete\Digtal Libary-DOT Paperwork\Drivers\Alberto Saenz\4132018TS.pdf (This is what I need)
Dim strMonth As String, strDay As String, strYear As String, strPresentation As String
strMonth = DatePart("m", Me.Combo197)
strDay = DatePart("d", Me.Combo197)
strYear = DatePart("yyyy", Me.Combo197)
If IsNull(Me.Combo233) Then Exit Sub
MsgBox Me.Combo233
strPresentation = "D:\Users\druss\Lauren Concrete\Digtal Libary-DOT Paperwork\Drivers" & Me.Combo233 & "" & ""
strPresentation = strPresentation & strMonth & strDay & strYear & "TS" & ".pdf"
Me.Text229 = strPresentation
(On a side note can someone teach me how I would add error checking to this code. I know I need to start error checking all my code)
The combo box is showing both values in the drop down but I cant figure out how to grab the second value.
Thanks for the help