A
aaron.kempf
so i've got this problem with a simple ADO loop and it's been driving
me crazy..
all i want to do is open a SQL statement and loop through the
recordset... i guess i'm just confused on what im doing wrong.
basically the problem that im facing is this:
1) when i take this S_SQL statement out of the immediate window and put
it in a query; it works like a charm.
2) when I open this recordset against a MDB; it returns .EOF = True
right off the bat.. even though there should be 10 records in the
recordset.
What am i doing wrong??
thanks let me know if you need more information
it just looks like it's returning .EOF = True even though the SQL
statement works in access just perfectly.
Thanks! a ton
rst.Open S_SQL, CurrentProject.Connection
' If rst.EOF = True Then
' MsgBox "unable to find any queries with this sql statement: "
& vbCrLf & S_SQL, vbOKOnly
' GoTo cleanexit
' End If
Dim i As Integer
Dim qryName As String
i = 0
MsgBox thisParagraph, vbOKOnly
While (Not rst.EOF)
qryName = rst.Fields("Name").Value
FlashQF (qryName)
'should we check for valid DAO.querydef.type for each
phase?
i = i + 1
rst.MoveNext
Wend
me crazy..
all i want to do is open a SQL statement and loop through the
recordset... i guess i'm just confused on what im doing wrong.
basically the problem that im facing is this:
1) when i take this S_SQL statement out of the immediate window and put
it in a query; it works like a charm.
2) when I open this recordset against a MDB; it returns .EOF = True
right off the bat.. even though there should be 10 records in the
recordset.
What am i doing wrong??
thanks let me know if you need more information
it just looks like it's returning .EOF = True even though the SQL
statement works in access just perfectly.
Thanks! a ton
rst.Open S_SQL, CurrentProject.Connection
' If rst.EOF = True Then
' MsgBox "unable to find any queries with this sql statement: "
& vbCrLf & S_SQL, vbOKOnly
' GoTo cleanexit
' End If
Dim i As Integer
Dim qryName As String
i = 0
MsgBox thisParagraph, vbOKOnly
While (Not rst.EOF)
qryName = rst.Fields("Name").Value
FlashQF (qryName)
'should we check for valid DAO.querydef.type for each
phase?
i = i + 1
rst.MoveNext
Wend