Forums
This topic is locked
Record Set Filter (Search Results)
Posted 22 Oct 2001 07:27:14
1
has voted
22 Oct 2001 07:27:14 Steve Copelin posted:
Having some trouble with the record set in creating a search results page. I place in the name, connection,table hit test an its OK. When i go to select a filter and hit test it displays [microsoft][ODBC Microsoft Access Driver] syntax error(missing operator) in query expression 'coloum name'I'm a little new to UD but willing to go the hard yards. Anyone got any answers.
thanx
Replies
Replied 22 Oct 2001 15:27:14
22 Oct 2001 15:27:14 simon bloodworth replied:
What is the code from the the results page?
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Having some trouble with the record set in creating a search results page. I place in the name, connection,table hit test an its OK. When i go to select a filter and hit test it displays [microsoft][ODBC Microsoft Access Driver] syntax error(missing operator) in query expression 'coloum name'
I'm a little new to UD but willing to go the hard yards. Anyone got any answers.
thanx
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
S Bloodworth
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Having some trouble with the record set in creating a search results page. I place in the name, connection,table hit test an its OK. When i go to select a filter and hit test it displays [microsoft][ODBC Microsoft Access Driver] syntax error(missing operator) in query expression 'coloum name'
I'm a little new to UD but willing to go the hard yards. Anyone got any answers.
thanx
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
S Bloodworth
Replied 23 Oct 2001 00:52:03
23 Oct 2001 00:52:03 Steve Copelin replied:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/VIEW_DATA.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
if (Request.QueryString("form1" <> "" then Recordset1__MMColParam = Request.QueryString("form1"
%>
<%
set Recordset1 = Server.CreateObject("ADODB.Recordset"
Recordset1.ActiveConnection = MM_VIEW_DATA_STRING
Recordset1.Source = "SELECT * FROM Main_tbl1 WHERE Stock Receipt Number = " + Replace(Recordset1__MMColParam, "'", "''" + ""
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<html>
<head>
<title>Results</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
<%
Recordset1.Close()
%>
Thats just the record set for the results page.
<!--#include file="Connections/VIEW_DATA.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
if (Request.QueryString("form1" <> "" then Recordset1__MMColParam = Request.QueryString("form1"
%>
<%
set Recordset1 = Server.CreateObject("ADODB.Recordset"
Recordset1.ActiveConnection = MM_VIEW_DATA_STRING
Recordset1.Source = "SELECT * FROM Main_tbl1 WHERE Stock Receipt Number = " + Replace(Recordset1__MMColParam, "'", "''" + ""
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<html>
<head>
<title>Results</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
<%
Recordset1.Close()
%>
Thats just the record set for the results page.