GFoster Posted May 26, 2014 Posted May 26, 2014 I am having an issue where I am getting a error '800a005e' Invalid use of Null: Here is the error and line: Microsoft VBScript runtime error '800a005e' Invalid use of Null: 'CStr' /acdb2/reportsSettings.asp, line 341 _____ Line 341: " <%If (Not isNull((current.Fields.Item("schedDateCurrent").Value))) Then If (CStr(schedDates.Fields.Item("schedDate").Value) = CStr((current.Fields.Item("schedDateCurrent").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(schedDates.Fields.Item("schedDate").Value)%> Please let me know if more code is needed. I am new to this and urgent that I get it working. Any help is greatly appreciated. Thank you.
penfold_99 Posted May 26, 2014 Posted May 26, 2014 This could be that one of your find items it not finding the field. If the return of find item is null you can't do .value. It would throw the error your getting 1
CESIL Posted May 27, 2014 Posted May 27, 2014 Try isEmpty or isBlank on the date field instead of isNull 1
elsiegee40 Posted May 27, 2014 Posted May 27, 2014 (edited) Mrs Gove, aka Times and Mail columnist Sarah Vine, is clearly feeling the pressure of people's loathing for her husband. (Michael Gove's children are traumatised by 'hate' aimed at their father - Telegraph) However, I think she misunderstands. It's not just socialists who dislike Michael Gove. I think he has upset quite a few of his own cabinet members. I used to believe that socialists were nice but misguided. Now I know that they are not nice at all. Edited May 27, 2014 by elsiegee40
Arthur Posted May 27, 2014 Posted May 27, 2014 It's not just socialists who dislike Michael Gove. Wrong thread?
GFoster Posted May 27, 2014 Author Posted May 27, 2014 Try isEmpty or isBlank on the date field instead of isNull Thank you, but that did not work. The way it is supposed to work, is that every semester a new term date is created and the list of term dates is updated. There are 3 drop down menu's that someone can use to change to different dates to do different reports, (transcripts in this case), along with an update button and a back to main button. A new date was added for the new term only showing the first drop down and is no longer displaying the other drop downs, update button or back to main button. I suspect that when the new date was added, it broke it somehow, as it had worked before. Thanks again.
GFoster Posted May 27, 2014 Author Posted May 27, 2014 (edited) The issue has been resolved. By placing an & "" before the end of the CStr function Then If (CStr(schedDates.Fields.Item("schedDate").Value [color=#0000ff][b]& ""[/b][/color]) = CStr((current.Fields.Item("schedDateCurrent").Value [color=#0000ff][b]& ""[/b][/color]))) [/Code] Thank you all for your replies. Edited May 27, 2014 by GFoster
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now