![]() Topic awaiting preservation: Passing variable problem (ASP) (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: NZ |
![]() 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 |
![]() 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 |
![]() Hi, mate. |