I have done that by creating a query exactly the same as my code and I get my records.Does that mean you get to the code block you thought wasn't working, but it doesn't do anything?
If so, the problem is a different problem.
Using breakpoints, and adding msgbox's or debug statements to trace the flow of a programme are things we have to use to track down the logic errors.
You could even open a query temporarily to see the expected results.
docmd.openquery "qryname"
It is rs2 in my code that is rs.count 0
Not sure how to open the rs2 in a query but hovering over it when string break point shows it to be empty.
the select statement for rs is pretty much the same except for field names and it returns the expected records, but rs2 returns empty.
Last edited: