Advertisement
Advertisement
| 04.01.2008 at 11:50PM PDT, ID: 23288274 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: |
<!-- this part works fine --> strsql="select contact_name," strsql=strsql& " address, area, phoneno, mobileno," strsql=strsql& " fax, short_ord,session_id,website" strsql=strsql & " into tmp_table from master_table where is_active=1" <!-- this is the section i am trying to alter --> If areacode<>"" Then strsql=strsql&" and (area like '%" & areacode & "%') " End If <!-- End of original SQL --> <!-- attempts... i have been commenting in and out lines but nothing seems to work, either they return no results or they return results that are outside the range. --> Dim arearange dim lowarea dim higharea arearange =5 lowarea=areacode-arearange higharea=CInt(areacode) + arearange 'higharea=areacode + 5 'lowarea=CStr([lowarea]) 'higharea=CStr([higharea]) If areacode<>"" Then ' strsql =strsql& " and (area between '%" & lowarea & "%' and '%" & higharea & "%')" ' strsql =strsql& " and (CInt(area) between CInt(lowarea) and CInt(higharea))" ' strsql =strsql& " and (area > '%" & lowarea & "%')" ' strsql =strsql& " and (area < '%" & higharea & "%')" End If |