codice:
Set conn2 = Server.createObject("ADODB.Connection") 
conn2.Open MM_conn_db_STRING 

dim mese,data1,data2,anno
mese = datepart("m",date())-1
anno = datepart("yyyy",date())
if mese = "12" then
anno=anno-1
end if
data1 = "1/"&mese&"/"&anno&" "
data2= "31/"&mese&"/"&anno&" "

do While not  rs1.eof 

'venduto
dim rsv,sqlv,venduto
Set rsv = Server.CreateObject("ADODB.Recordset")
'esterno
rstotSQL = "SELECT SUM(ITEMS_TOTAL) as TOT FROM storeges.ORDERS WHERE billing_notes LIKE '%-" & rs1.Fields.Item("store").Value & "-%' AND(order_date BETWEEN  "& data1 &" AND "& data2 &") "
rsv.open SQLv, conn2, 0,3


...
l'errore:
ADODB.Recordset error '800a0bb9'

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another

sulla riga in neretto


la connesione mi sembra giusta, il db è sqlserver e nella ricerca ho trovato varie soluzioni che non fungono con la mia situazione...

internamente funzica!!