accessvbahelp
Technical User
How do I write code to figure out how to recognize the characters before the "-" symbol. If my part is 301-001 I need to capture the 301 if the part is BBLNK-001 I need to capture BBLNK. This is what I have but it only works for the first three characters.
Thank you all for your help! I am new at writing code, Thank you for being patient.
Code:
Dim strDwgNumb As String
Dim strRev As String
Dim strFolder As String
DwgNumb = Forms("frmMain")!DrawingNumber.Value 'Gets drawing number from form
Rev = Forms("frmMain")!Revision.Value 'Gets revision letter from form
Folder = Left(DrawingNumber, "3") 'Pulls folder number from first three characters of drawing number
Thank you all for your help! I am new at writing code, Thank you for being patient.