I currently have a report rptNTotalsByField which is based on a query qryrptNTotalsAndSNS. Unfortunately a change in legislation means that from now on I need to use a new set of data tables but still need to be able to reproduce the reports with the old data.
I have a trigger “CroppingYear” which is in a table tblSLTRpt and what I would like is:
when CroppingYear is 2011 or later then base rptNTotalsByField on qryrptNTotalsAndSNS2011 if not use the existing query.
CroppingYear is a number not a date.
I have not done this before so help with the coding and also where I store the coding would be appreciated.
Thanks in advance
I have a trigger “CroppingYear” which is in a table tblSLTRpt and what I would like is:
when CroppingYear is 2011 or later then base rptNTotalsByField on qryrptNTotalsAndSNS2011 if not use the existing query.
CroppingYear is a number not a date.
I have not done this before so help with the coding and also where I store the coding would be appreciated.
Thanks in advance