你如何基于Access数据库中的多值查找字段中选择行?
下面的ASP代码返回使用多数据列时没有值:
<%
Dim Contractors
Dim Contractors_cmd
Dim Contractors_numRows
Set Contractors_cmd = Server.CreateObject ("ADODB.Command")
Contractors_cmd.ActiveConnection = MM_Listings_STRING
Contractors_cmd.CommandText = "SELECT * FROM Contractor WHERE UserStatus = 'Active' AND AgentID= "& Session("AgentID")
Contractors_cmd.Prepared = true
Set Contractors = Contractors_cmd.Execute
Contractors_numRows = 0
%>