Ryan,
I think this will work. The concept matches my question. I am trying to integrate your code with my code but it is not matching.
Here is what I am using:
Public Sub ImportPermits()
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("tblTestACL", dbOpenDynaset)
Dim strData As String
Close #1
Open "c:\projects\test\text.txt" For Input As #1 'data file for import
Do Until EOF(1)
Line Input #1, strData 'grab a line
'check for which
If Left(strData, 2) = "TC" Then
rs.AddNew
rs!tcID = Mid(strData, 1, 10)
ElseIf Left(strData, 22) = "Test Case Description:" Then
'rs.AddNew
rs!tcDesc = Trim(Mid(strData, 23))
ElseIf Left(strData, 11) = "Test Group:" Then
'rs.AddNew
rs!TestGroup = Trim(Mid(strData, 12))
ElseIf Left(strData, 19) = "Related Test Cases:" Then
'rs.AddNew
rs!RelatedTestCase = Trim(Mid(strData, 20))
ElseIf Left(strData, 15) = "Test Objective:" Then
'rs.AddNew
rs!TestObjective = Trim(Mid(strData, 16))
ElseIf Left(strData, 20) = "Completion Criteria:" Then
'rs.AddNew
rs!CompletionCriteria = Trim(Mid(strData, 21))
ElseIf Left(strData, 20) = "Product Requirement:" Then
'rs.AddNew
rs!ProductRequirement = Trim(Mid(strData, 21))
ElseIf Left(strData, 11) = "Description" Then
'rs.AddNew
rs!Procedure = Trim(Mid(strData, 12))
ElseIf Left(strData, 9) = "Pass/Fail" Then
'rs.AddNew
rs!tcStatus = Trim(Mid(strData, 10))
ElseIf Left(strData, 9) = "Comments:" Then
'rs.AddNew
rs!Comments = Trim(Mid(strData, 11))
ElseIf Left(strData, 15) = "Tracking Number:" Then
'rs.AddNew
rs!bugID = Trim(Mid(strData, 16))
rs.Update
End If
Loop
Close #1
'rs.Close
Set rs = Nothing
End Function
What I want your function to do is run at one of the If points (as example - the first IF when it references "TC"

.
Does this make sense? If this is easy, I apologize. I was thrown into this project and am trying to learn as I go.
I would appreciate your thoughts and greatly appreciate your initial response.
Thanks.
Ben