L
Laurel
I have a select statement as follows.
Select * from qryClassSummaryDetail WHERE [class_code] = 'ML2' AND
Student_ID <> -1
I use it in a bit of code in this way (as_where works out to be the clause
above.)
li_i = fncRefreshQuery("qryClassSummaryDetailBase",
"qryClassSummaryDetail")
ls_temp = "Select * from qryClassSummaryDetail " & As_where
Set rstClassDetail = CurrentDb.OpenRecordset(ls_temp)
For a couple of years, this has worked fine. Now, suddenly, it is returning
only one row when executed in the code above. It is the first row of the
many that I get if I execute the same statement (cut and paste from the
debugger) in the query builder/SQL view. When I execute the statement
there, I get all of the students where class_code = 'ML2'. This is true
whether I use qryClassSummaryDetail or qryClassSummaryDetailBase.
I haven't done any editing of this code recently, and it's been running fine
since the start of school.
What's happening?
Select * from qryClassSummaryDetail WHERE [class_code] = 'ML2' AND
Student_ID <> -1
I use it in a bit of code in this way (as_where works out to be the clause
above.)
li_i = fncRefreshQuery("qryClassSummaryDetailBase",
"qryClassSummaryDetail")
ls_temp = "Select * from qryClassSummaryDetail " & As_where
Set rstClassDetail = CurrentDb.OpenRecordset(ls_temp)
For a couple of years, this has worked fine. Now, suddenly, it is returning
only one row when executed in the code above. It is the first row of the
many that I get if I execute the same statement (cut and paste from the
debugger) in the query builder/SQL view. When I execute the statement
there, I get all of the students where class_code = 'ML2'. This is true
whether I use qryClassSummaryDetail or qryClassSummaryDetailBase.
I haven't done any editing of this code recently, and it's been running fine
since the start of school.
What's happening?