It would help if you gave the description of the error message rather than just the number.

I would not use the data control but would use ado code instead.

You have not shown where you are opening a recordset.