Here's my current Select Statement:
SQL1 = "SELECT * From tbl_Business "
SQL1 = SQL1 & " Where ([Street Number] = " & Clng(Request.QueryString("dig"
) & "
AND"
SQL1 = SQL1 & " ([Street Direction] = '" & Replace(Request.QueryString ("dir"
, "'", "''"
& "') AND"
SQL1 = SQL1 & " ([Street Name] = '" & Replace(Request.QueryString ("street"
, "'", "''"
& "') AND"
SQL1 = SQL1 & " ([Street Type] = '" & Replace(Request.QueryString ("type"
, "'", "''"
& "') AND"
SQL1 = SQL1 & " ([aptsuite] = '" & Replace(Request.QueryString ("apt"
, "'", "''"
& "')"
Now, the 2nd database that I'll be drawing off of has the location format of three parts instead of the five parts as seen above. Thus, I need to create a Where statment that will combine the three in the middle (above) into one.
In other words, the Street Direction, Street Name, and Street Type, must be combined into one. Any ideas?
SQL1 = "SELECT * From tbl_Business "
SQL1 = SQL1 & " Where ([Street Number] = " & Clng(Request.QueryString("dig"
SQL1 = SQL1 & " ([Street Direction] = '" & Replace(Request.QueryString ("dir"
SQL1 = SQL1 & " ([Street Name] = '" & Replace(Request.QueryString ("street"
SQL1 = SQL1 & " ([Street Type] = '" & Replace(Request.QueryString ("type"
SQL1 = SQL1 & " ([aptsuite] = '" & Replace(Request.QueryString ("apt"
Now, the 2nd database that I'll be drawing off of has the location format of three parts instead of the five parts as seen above. Thus, I need to create a Where statment that will combine the three in the middle (above) into one.
In other words, the Street Direction, Street Name, and Street Type, must be combined into one. Any ideas?