| | |
Boolean variable True/false
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2006
Posts: 2
Reputation:
Solved Threads: 0
Hi there,
Using DMX4 & MsAccess (ASP VBScript)
i'm trying to show my True/false results as Yes/No. I am trying this at the mo:
<%If(RsNewProds.Fields.Item("Org").Value)=1 Then
Response.Write("Yes") else Response.Write("No")end if%>
but it comes up with error 0x800A0412 at the 'else' bit of the script
Any thoughts??
Thanks
Using DMX4 & MsAccess (ASP VBScript)
i'm trying to show my True/false results as Yes/No. I am trying this at the mo:
<%If(RsNewProds.Fields.Item("Org").Value)=1 Then
Response.Write("Yes") else Response.Write("No")end if%>
but it comes up with error 0x800A0412 at the 'else' bit of the script
Any thoughts??
Thanks
Clean it up and do it the right way 
The cleaner you code the easier it is to go back and edit things.

ASP Syntax (Toggle Plain Text)
<% If CBool(RsNewProd("Org")) Then Response.Write("Yes") Else Response.Write("No") End If %>
The cleaner you code the easier it is to go back and edit things.
![]() |
Similar Threads
- how to pass class variable to another class (Java)
- Boolean Algebra (C++)
- boolean array (Java)
- What is the size of a boolean variable (Java)
- Convert first character from lowercase to uppercase? (C++)
- If-Else in C# (C#)
Other Threads in the ASP Forum
- Previous Thread: Designing an Intranet using ASP
- Next Thread: shopping cart
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit web webserver windows7





