CO_ZIP = "RI" oRecordSet.Open "SELECT ... WHERE <i>field</i> = CO_ZIP", oConnIf this is the case, you are close, but you have to get in the mindset that ASP and Fox are separate, ie when Fox receives the SQL statement, it has no idea what CO_ZIP is. Therefore, you must create the SQL statement that already has the ASP variables "converted" for Fox (the same would apply if you were using another backend such as SQLServer. Thus, assuming CO_ZIP is a CHAR, your line should look like this:
oRecordSet.Open "SELECT ... WHERE <i>field</i> = " & CHR(34) & CO_ZIP & CHR(34), oConnso that fox receives
SELECT ... WHERE field = "RI"
.