> Just a guess, but surely the column name in the recordset should be > "WorkOrderNumber" - i.e., no "@"? not a column name; it's the return parameter, and needs the '@' in the SQL; in the variable assignment in vbscript, it doesn't seem to work either way