I cannot get the Request.Query string to work on a particular database that I'm drawing from. I believe the problem is because the field in the database that I'm drawing from is two words. In this example, the two words for the field is Street Number. I tried a query string for the phone number since the name of the field is one word, phone. That worked, so I'm guessing my querystring doesn't like the two word format. Is there a fix I can set up.
BTW, I'm drawing off a MS Access doc for now. However, I will drawing off of the same databases in SQL Server later.
Here's my Select and querystring:
this does not work for
SQL1 = "SELECT * From tbl_Business"
SQL1 = SQL1 & " Where Street Number = '" & (Request.QueryString ("dig"
) & "'"
set rs = my_conn.Execute(SQL1)
Here's the error message:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'Street Number = '''.
/TestServer/business.asp, line 39
This does work:
SQL1 = "SELECT * From tbl_Business"
SQL1 = SQL1 & " Where phone= '" & (Request.QueryString ("phone"
) & "'"
set rs = my_conn.Execute(SQL1)
BTW, I'm drawing off a MS Access doc for now. However, I will drawing off of the same databases in SQL Server later.
Here's my Select and querystring:
this does not work for
SQL1 = "SELECT * From tbl_Business"
SQL1 = SQL1 & " Where Street Number = '" & (Request.QueryString ("dig"
set rs = my_conn.Execute(SQL1)
Here's the error message:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'Street Number = '''.
/TestServer/business.asp, line 39
This does work:
SQL1 = "SELECT * From tbl_Business"
SQL1 = SQL1 & " Where phone= '" & (Request.QueryString ("phone"
set rs = my_conn.Execute(SQL1)