p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: CBool Problem


Message #1 by "Nadia Hamza" <hamzan@h...> on Thu, 28 Sep 2000 22:46:09 +0100
its more likey that it returns YES or ""

thus you must

ActiveMember =  Request.Form("ActiveMember") 
if ActiveMember <> "" then
	ActiveMember = TRUE
else
	ActiveMember = False
end if





-> -----Original Message-----
-> From: Jason A. Greenfeld [mailto:jgreenfeld@r...]
-> Sent: Friday, September 29, 2000 11:28 AM
-> To: Code Clinic
-> Subject: [proasp_codeclinic] RE: CBool Problem
-> 
-> 
-> What does Request.Form("ActiveMember") return? I am assuming 
-> it returns a
-> True/False value.
-> 
-> 
-> Jason Greenfeld
-> Rubicon Technologies, Inc.
-> http://www.rubicontechnologies.com
-> 
-> 
-> 
-> -----Original Message-----
-> From: Nadia Hamza [mailto:hamzan@h...]
-> Sent: Thursday, September 28, 2000 5:46 PM
-> To: Code Clinic
-> Subject: [proasp_codeclinic] CBool Problem
-> 
-> 
-> Hi,
-> 
-> I'm using the following code:
-> 
-> sql = sql & CBool(Request.Form("ActiveMember")) & "'"
-> 
-> And I keep getting the following error:
-> 
-> Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
-> 
-> [Microsoft][ODBC Microsoft Access Driver] Data type mismatch 
-> in criteria
-> expression.
-> 
-> /cosn/administration/updatemember.asp, line 404
-> 
-> Any suggestions would be greatly appreciated.
-> 
-> Nadia
-> 
-> 
-> 
-> 

  Return to Index