Io ho provato a fare un motore ed ho utilizzato questo codice:

<%
response.expires=0
dim testo
dim sql
dim ris
dim kw

set conn=server.createobject("ADODB.connection")
conn.provider="Microsoft.jet.OLEDB.4.0"
conn.open ("c:/inetpub/wwwroot/db.mdb")
set tabella=server.createobject ("ADODB.recordset")
tabella.activeconnection=conn
tabella.source="tab1"
tabella.open()
set tabella2=server.createobject ("ADODB.recordset")
tabella2.activeconnection=conn
tabella2.source="tab2"
tabella2.open()

testo=request.form("keywords")
if testo="" then response.Redirect("scooter.asp")
kw=split(testo," ")
for i=o to ubound (kw)
sql="select * from tab1 where articolo descrizione like '%%%" & testo & "%%%"
dim res
set res=conn.execute(sql)

if not res.eof then
do while not res.eof
response.Write res("articolo")
res.movenext
loop
else
response.Write("nessun risultato")
end if

next
%>

Però la ricerca viene effettuata solo su la tab1 e solo nel campo descrizione, io vorrei farla sia su tab1 che su tab2 e in più campi (descrizione, articolo, marca)

come si fa????



Grazie