Hey!
To get you started, look into the cursor you are creating.
And also think about using the recordset object directly without
using the command object at all.
At first glance I am guessing that the problem is to do with the fact that the recordset returned cannot be traversed.
Such as in a Forward Only cursor...and I think...that the default for the command object is such a cursor....?
Try using the objSurround.Filter = "MsgID = " & Request("MsgID") instead to shrink the recordset temporarily.
If this doesn't work you will probably need to change the cursor you are using....along with the using the recordset object instead of the Command object so that you can specify the cursor type to use.....and also look into the way you are connecting to the datasource to make sure that the provider {driver} supports the features you're intending to use.
see how you get on....
|