I am getting the following error in my ASP code:
Microsoft VBScript runtime error "800a005e".
Invalid use of Null.
/Hedgehunter/hedgehunter_search_results.asp, line 252
This is expected as I am using the function MonthName and Year on a Null value. However, whenever an expected error like is occurs, is there anyway of catching it (much like a Java Exception) so I can do something with it other than display to the user (on the web page).
I am looking for a possible solution other than wrapping the functions in an IF statement to check if the values are Null first. I have a very large ASP file and this would require thousands of lines being modified.
Not sure if anything is possible but any help and suggestions are much appreciated.