>it's the
>with
> .index = ...
>
>line which gives he error.
If "PrimaryKey" is not a column in your recordset, it will generate an error with quotes around it. Contrariwise if you don't have the quotes and PrimaryKey is not a populated variable, it will error.
Jason
Jason Tryon
Senior Systems Analyst / Technical Lead
eBusiness / iPage