Good Day everyone!
I am having an issue with code I am running.
Do While Not rst1.EOF
' Open records for this ID, sorted by Date.
strSQL2 = "SELECT * FROM TBL1 WHERE ID=" & rst1!ID & " ORDER BY Date"
Set rst2 = dbs.OpenRecordset(strSQL2, dbOpenDynaset)
It use to work for another report. However for current one I need to start from the greater date and I can't find way to set it up.
All of my records are having multiply rows.
I need to start from Max Date row.
I had tried ORDER BY Date desc but same error - no record available...
Can you help? Thanks
I am having an issue with code I am running.
Do While Not rst1.EOF
' Open records for this ID, sorted by Date.
strSQL2 = "SELECT * FROM TBL1 WHERE ID=" & rst1!ID & " ORDER BY Date"
Set rst2 = dbs.OpenRecordset(strSQL2, dbOpenDynaset)
It use to work for another report. However for current one I need to start from the greater date and I can't find way to set it up.
All of my records are having multiply rows.
I need to start from Max Date row.
I had tried ORDER BY Date desc but same error - no record available...
Can you help? Thanks