This works in Access. I understand that you cannot use the NZ function with ASP/VB Script.
Does anyone know how I could make this SQL statement work in my ASP page using VBSCIPT.
BatterGames = rsBatQual("TotalPA")
DIM rsBatterLU, sqlBatterLU
sqlBatterLU = "SELECT games FROM tblLookupPSBatters "
sqlBatterLU = sqlBatterLU & "WHERE ((('" & BatterGames & "') Between Nz([minVal],-999999) And Nz([maxVal],999999)));"
set rsBatterLU = Server.CreateObject ("ADODB.RecordSet")
rsBatterLU.Open sqlBatterLU,conn
Thanks
You do not say what your storage is which you use in the ASP-page. If it is SQL Server you can use the ISNULL function.