Hi All,
Ive got a pretty difficult task in terms of size. I have a table which has 629326 records in it. And I have to extract * where tlGLCode = 841 criteria.
Obviously the idea method would be to SQL statement it, but SQL cant handle that many conditions.
So I thought, I'd knock up a quick form, with 2 text boxes, one to show the results delimited, and another I could copy delimited condition codes into. So I could do it maybe 20 at a time.
However I was just getting round to building it when ...
This code only produces :
"TPBERM, , SIN001681 "
As an output, so it is missing tlDescr, and doesnt bring up the rest of the results?
I need help! Or a suggestion of how else I should do this!
Ive got a pretty difficult task in terms of size. I have a table which has 629326 records in it. And I have to extract * where tlGLCode = 841 criteria.
Obviously the idea method would be to SQL statement it, but SQL cant handle that many conditions.
So I thought, I'd knock up a quick form, with 2 text boxes, one to show the results delimited, and another I could copy delimited condition codes into. So I could do it maybe 20 at a time.
However I was just getting round to building it when ...
Code:
Private Sub Command6_Click()
mainText = ""
Dim rs As Recordset
Dim i As Integer
Set rs = CurrentDb.OpenRecordset("SELECT [Consol Final].*, [Consol Final].tlJobCode FROM [Consol Final] WHERE ((([Consol Final].tlJobCode)='VD1A00002' Or ([Consol Final].tlJobCode)='UKVPN13846'))")
rs.MoveFirst
For i = 0 To rs.RecordCount
mainText = rs("Entity") & ", " & rs("Consol Workings 1_idxAcCode") & ", " & rs("idxOurRef") & ", " & rs("tlDescr")
rs.MoveNext
Next i
End Sub
This code only produces :
"TPBERM, , SIN001681 "
As an output, so it is missing tlDescr, and doesnt bring up the rest of the results?
I need help! Or a suggestion of how else I should do this!