is the document already a mailmerge object?

try recording a macro to generate some sample code