Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid use of null

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
US
I have the following code that gives me an error and I am curious to why???

Error Type:
Microsoft VBScript runtime (0x800A005E)
Invalid use of Null: 'CStr'


<input <% if (CStr((dbrs2.Fields.Item(&quot;goalsmidsupapprove&quot;).value)) = CStr(&quot;1&quot;)) Then Response.write(&quot;checked&quot;) : Response.Write(&quot;&quot;)%> name=&quot;supercheck&quot; type=&quot;checkbox&quot; id=&quot;supercheck&quot; value=&quot;checked&quot;>
 
it would suggest that dbrs2.Fields.Item(&quot;goalsmidsupapprove&quot;).value has no value therefore null...try writing the value back to the browser to ensure that a value is present.

hth

Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top