I'm using VB6 with an Access DB.
In one of my subs I have a complex SQL string.
It is pulling up records but it's not returning one of the fields I need.

rsUseA.Fields("TextID") is getting an 'item cannot be found' error.
Which seems strange since the TextID field is being used in the condition statement of the SQL string.

Any idea what's wrong?
Here's most of the code:
vb Code:
  1. ReDim Preserve g_tTexts(0) 'clear the utd
  2.     sSQL = "SELECT * FROM tblSelectedGroups SG, tblSelectedTexts ST, tblTexts T " & _
  3.             "WHERE (ST.UserID = " & CStr(g_lUserID) & _
  4.             ") AND (SG.UserID = " & CStr(g_lUserID) & _
  5.             ") AND (ST.USE = True) " & _
  6.             "AND (ST.TextID = T.TextID) " & _
  7.             "AND (SG.GroupID = T.GroupID)"
  8.     Set rsUseA = New ADODB.Recordset
  9.     rsUseA.Open sSQL, cn, adOpenKeyset, adLockPessimistic, adCmdText
  10.     If Not rsUseA.EOF Then
  11.         rsUseA.MoveFirst
  12.         Do Until rsUseA.EOF
  13.             g_tTexts(lCnt).TextID = rsUseA.Fields("TextID")
  14.             g_tTexts(lCnt).Msg = rsUseA.Fields("Text")
  15.             g_tTexts(lCnt).dtEarliest = rsUseA.Fields("EarliestStart")
  16.             g_tTexts(lCnt).dtLatest = rsUseA.Fields("LatestRun")

I'm getting the error in line 13.
All of the rest of the rsUseA.Fields are loading without a problem.