Article ID: 190529
Article Last Modified on 1/23/2007
Set rs = Session("<SessionName>")
<%
If IsObject(Session("<SessionName>")) Then
session.abandon
End if
%>
Query: qryParamCust
----------------------------------
Type: Select Query
Field: CustomerID
Table: Customers
Criteria: Like [Enter ID] & "*"
Field: CompanyName
Table: Customers
Field: ContactName
Table: Customers
Field: Phone
Table: Customers
Form: frmParamCust
---------------------------------
Caption: Customers
RecordSource: qryParamCust
Text box:
Name: CustomerID
ControlSource: CustomerID
Text box:
Name: CompanyName
ControlSource: CompanyName
Text box:
Name: ContactName
ControlSource: ContactName
Text box:
Name: Phone
ControlSource: Phone
sql = "SELECT Customers.CustomerID, Customers.CompanyName,
Customers.ContactName, Customers.Phone FROM Customers WHERE
(((Customers.CustomerID) Like '" & Request.QueryString
("[Enter ID]") & "%'))"
ARTICLE-ID: 162977 ACC97: ASP Query Cannot Be Used with the LIKE Predicate
Additional query words: prb
Keywords: kbprb KB190529