I have a couple of Global variables called ExportStartDate and ExportEndDate, respectively.
When the user wants to export data to Excel I allow them to specify the date range, but they can also Cancel the action.
If they hit Cancel, I want to set these dates to Null and then test for the Null value. If NULL then I bypass the TransferSpreads heet command.
The declarations are as follows:
The code is:
But this is erroring. The error is:
What's wrong?
Thank you.
When the user wants to export data to Excel I allow them to specify the date range, but they can also Cancel the action.
If they hit Cancel, I want to set these dates to Null and then test for the Null value. If NULL then I bypass the TransferSpreads heet command.
The declarations are as follows:
Code:
Global ExportStartDate As Date Global ExportEndDate As Date
Code:
ExportStartDate = Null ExportEndDate = Null
Run-time error '94'
Invalid use of Null
Invalid use of Null
Thank you.
Comment