ho bisogno di leggere i dati della tabella GestionePreventivi e i dati del campo productID della tabella RiepilogoCosti

in access funziona


codice:
SELECT GestionePreventivi.NumeroPreventivo AS GestionePreventivi_NumeroPreventivo, GestionePreventivi.NomeCliente, RiepilogoCosti.NumeroPreventivo AS RiepilogoCosti_NumeroPreventivo, RiepilogoCosti.productID
FROM GestionePreventivi INNER JOIN RiepilogoCosti ON GestionePreventivi.NumeroPreventivo=RiepilogoCosti.NumeroPreventivo
WHERE GestionePreventivi.NumeroPreventivo="1/2013";

ma in asp no:

codice:

<%
QueryToJSON(Conn, "SELECT GestionePreventivi.NumeroPreventivo AS GestionePreventivi_NumeroPreventivo, GestionePreventivi.NomeCliente, RiepilogoCosti.NumeroPreventivo AS RiepilogoCosti_NumeroPreventivo, RiepilogoCosti.productID
FROM GestionePreventivi INNER JOIN RiepilogoCosti ON GestionePreventivi.NumeroPreventivo = RiepilogoCosti.NumeroPreventivo WHERE GestionePreventivi.NumeroPreventivo  = '"&request("q")&"'").Flush