Ho risolto da me, posto il codice
codice:
<%
Dim ipu
Dim strsql
ipu = Request.ServerVariables("REMOTE_ADDR")
response.write "1 " & ipu & "
"
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "Provider = Microsoft.Jet.OLEDB.4.0; Data Source =" & Server.MapPath("DB.mdb")
Dim strSQ
response.write "2 " & ipu & "
"
strSQ = "Select * From DB_tb Where ip = '" & ipu & "'"
set pRS = Server.CreateObject("ADODB.Recordset")
pRS.open strSQ, ObjConn,3,1,1
if NOT pRS.eof then
pRS.close
set pRS = nothing
ObjConn.close
set ObjConn=nothing
response.redirect "page.html"
end if
strSQ = "Insert into iptb(ip) values ('" & ipu & "')"
objConn.Execute strSQ
response.redirect "http://sito"
%>
Ovviamente ci sono tanti errori che si potrebbero correggere, o meglio si potrebbe fare in qualche altro modo. Ma visto che riesce a fare quello che mi serve e che non mi importa di altro va bene così.
p.s. ho fatto un po' di copia e incolla per riuscire a farlo e penso che si noti