MS OLE DB Provider for ODBC Drivers error 80040e14 Getting Syntax error with this code: Can you hel [message #1302] |
Thu, 18 April 2002 13:34 |
Molly M. McHenney
Messages: 1 Registered: April 2002
|
Junior Member |
|
|
Getting Syntax error with this code: Can you help!
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[[Microsoft]][[ODBC Microsoft Access Driver]] Syntax error (missing operator) in
query expression 'region ='.
/regions/webpages/HHSC_Voice_Consolidation/UpdateDelete.asp, line 11
<%@LANGUAGE="VBSCRIPT"%>
<!--#include virtual="/regions/Connections/regional_personnel1.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
if (Request.QueryString("Select") <> "") then Recordset1__MMColParam =
Request.QueryString("Select")
%>
<%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_regional_personnel1_STRING
Recordset1.Source = "SELECT * FROM PBX WHERE region = " & Session("region")&
" ORDER BY city ASC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Thanks,
Molly
|
|
|
|