help me understand
have this code
<code>
If Not IsNull (x_pxid) Then
sqlwrk = "SELECT * FROM tbl_stock"
sqlwrk = sqlwrk & " WHERE stockid = " & x_pxid
Set rspx = conn.Execute(sqlwrk)
endif
</code>
...but this query is still being run even though value of
x_pxid is nothing
have this code
<code>
If Not IsNull (x_pxid) Then
sqlwrk = "SELECT * FROM tbl_stock"
sqlwrk = sqlwrk & " WHERE stockid = " & x_pxid
Set rspx = conn.Execute(sqlwrk)
endif
</code>
...but this query is still being run even though value of
x_pxid is nothing