I've just created a new report, which is autonumbered, but I want to get the data from the previous report, which may not be serially sequential.
Let's say the returned result is
SINGAPORE 4
SINGAPORE 5
SINGAPORE 7
SINGAPORE 9
SINGAPORE 27
I'm currently working on report #27, how do I let my query know that it should retrieve the data from report #9, - if i was working on report #7, how will it know to retrieve #5?
i initially had a WHERE reportID = [reportID]-1
but obviously that would only get me to report #26,
any ideas?
Code:
SELECT tblReports.AgencyID, tblReports.ReportID
FROM tblReports
WHERE (((tblReports.AgencyID)=[forms]![frmnavigation]![masterfilter]));
SINGAPORE 4
SINGAPORE 5
SINGAPORE 7
SINGAPORE 9
SINGAPORE 27
I'm currently working on report #27, how do I let my query know that it should retrieve the data from report #9, - if i was working on report #7, how will it know to retrieve #5?
i initially had a WHERE reportID = [reportID]-1
but obviously that would only get me to report #26,
any ideas?