gettingstarted
[Top] [All Lists]

Re: Compound "Where"

To: gettingstarted at lists dot realsoftware dot com
Subject: Re: Compound "Where"
From: GAmoore at aol dot com
Date: Thu, 30 Oct 2003 20:02:49 EST
MY APOLOGIES BUT I HAVE TRIED TO SEND THIS MESSAGE 5 TIMES IN THE PAST TWO HOURS USING EUDORA AND IT KEEPS GIVING EMAIL ERRORS - SO I WILL SEND IT THROUGH AOL.


>"select * from AllClasses where year = " + popMyear.text  + " AND
>term = " +  popMterm.text

Well, you're not putting quotes around the term here.


Thanks Joe! That fixed it. The reason I didn't do that was that it worked for the other term (popMyear.text) without quotes even though both are stored as strings (varchars) :

  TableFs = TableFs + "Year         varchar, "        
  TableFs = TableFs + "Term        varchar, " 
<Prev in Thread] Current Thread [Next in Thread>