Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Error looking for field I don't reference


Message #1 by "Jose Haymaker" <ehaymaker@a...> on Mon, 22 Oct 2001 21:19:48
For this code, my query calls a1domin, a2domin, and a3domin.  But I am 

getting an error stating that a4domin can't be found.  Why is it being 

sought when I didn't ask for it?



with myCommand

 x=1 

 while myDataReader.read()

  

 response.write (myDataReader.item("prodid"))

 response.write (myDataReader.item("proddesc"))

 

 if mydatareader.item("a" & trim(str(x)) &"domin") <> "" then

 response.write ("$")

 response.write (myDataReader.item("a" & trim(str(x)) &"price"))

 response.write ("<br>")

 else

 response.write ("%")

 end if

 

 x += 1

 end while

 end with

  Return to Index