Topic awaiting preservation: Passing variable problem (ASP) (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: NZ |
posted 11-17-2003 05:31
Hi, guys. Can I ask you this please? code: sql = "SELECT WineryName, Name, Region, Price, Star, Vintage, Classic, Screw, AirNZ, Cuisine"
code: WHERE Winery.Region = '"&v_region&"'"
|
Bipolar (III) Inmate From: New Jersey, USA |
posted 11-17-2003 11:21
Just move the conditional statement used to get v_region above the building of the SQL statement. You are getting the value after you build the statement. This wouldn't work unless you were building prepared statements. |
Paranoid (IV) Inmate From: NZ |
posted 11-17-2003 20:55
Hi, mate. |