Topic awaiting preservation: SQL problem (ASP) |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: NZ |
posted 11-15-2003 06:13
Hi, guys. How are you? Please help me. code: sql = "SELECT WineryName, Name, Region, Price, Star, Vintage, Classic, Screw, AirNZ, Cuisine FROM Winery INNER JOIN"
|
Paranoid (IV) Inmate From: France |
posted 11-15-2003 12:41
Hiroki: have you response.write( ... ) the sql query in the 3 or 4 cases to see if you generate it well ? |
Paranoid (IV) Inmate From: NZ |
posted 11-16-2003 02:27
Hi, Poi. Thank you for your reply. quote:
code: <%Do Until Not rs.EOF AND recct >= maxrecs%>
|
Obsessive-Compulsive (I) Inmate From: Frederick, MD, USA |
posted 11-16-2003 08:53
The code that checks whether the recordset is empty is fine, but the rest of it gets executed either way. You have to put the actual display in an else section. If not it's going to display that nothing was found then try to access the recordset anyway. |
Paranoid (IV) Inmate From: NZ |
posted 11-17-2003 00:41
Hi, BikerSoft. Welcome to Ozoneasylum and many many thanks for your reply. code: SELECT * FROM Winery WHERE Wine_Winery.Price < 30 AND Winery.WineryName = ''
code: SELECT * FROM Winery WHERE Wine_Winery.Price < 30
code: <!-- This is main sql statement -->
|
Paranoid (IV) Inmate From: NZ |
posted 11-17-2003 01:56
Hi, guys. code: If Request("winery")= "1" then
|
Paranoid (IV) Inmate From: NZ |
posted 11-17-2003 02:39
Hi, Poi. Really thanks for telling me that. |