Most of our reports are based on a fiscal year and we have a number of forms which require the user to select the fiscal year from a dropdown list. The contents of the list come from the following code in the "Row Source" field of the Properties dialog box:
The "Default Value" property is hardcoded to the current fiscal year value ("03-04"
. This means I have to go in and change the default value every year. I am trying to automate this process. I have a query (qryFiscalYear) that compares the current date to the StartDate and EndDate fields in the Fiscal Year table and produces the current fiscal year as a result. My problem is getting this result into the Default Value property. I have tried several approaches and either get no devault value, or a #Name error.
I have tried everything I could find in my books, as well as this forum and nothing I've found has worked. I would really appreciate any suggestions you might have!
Thanks for your time!
Code:
SELECT FiscalYears.FiscYear FROM FiscalYears ORDER BY FiscalYears.FiscYrKey DESC;
I have tried everything I could find in my books, as well as this forum and nothing I've found has worked. I would really appreciate any suggestions you might have!
Thanks for your time!