Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Microsoft VBScript compilation (0x800A03EA)-proble

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,3118
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Microsoft VBScript compilation (0x800A03EA)-proble
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Microsoft VBScript compilation (0x800A03EA)-proble - 5/25/2005 10:05:28 AM   
  koolraj

 

Posts: 1
Score: 0
Joined: 5/25/2005
From:
Status: offline
Hai,



following is my code in asp using vb

dim name1
dim name2
while not rs1.EOF

name1 = Request.Form("T2")
name2 = Request.Form("T4")
Response.Write(rs1(3) & " " & rs1(5) & " " & Request.Form("T2") & " " & Request.Form("T4") &" " & name1 & " " & name2 & "<BR>")
//This part of code is not working, its not comparing them in IF condition//
if(rs1(3) = Request.Form("T2") AND rs1(5) = Request.Form("T4") ) then
comm1.CommandText = "UPDATE Refferal SET Date_Reffered = GetDate() WHERE Refferrer_name='"&Request.Form("T1")&"' AND Refferered_name ='"&Request.Form("T3")&"'"
comm1.Execute
found = "True"
Response.Write "I am here inside"
end if
rs1.MoveNext
wend


How can i compare the value of recordset field to a request.form value, as u can see the i tried to display, its all showing me the same value but, its not comparing help me
 
 
Post #: 1
 
 Re: Microsoft VBScript compilation (0x800A03EA)-proble - 5/26/2005 4:43:07 AM   
  VBS

 

Posts: 110
Score: 0
Joined: 3/2/2005
From: Lebanon
Status: offline
Dear koolraj,
Try replacing the rc1(3) with rc1.fields(3)
it should work

(in reply to koolraj)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Microsoft VBScript compilation (0x800A03EA)-proble Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts