Question : Need to change docmd.OpenQuery acViewPreview Object

I am previewing a query so my user can print it, very simple.  However, I wish to add a disclaimer note at the bottom.  Because I am allowing my user to define the fields in the query, it is never the same number of columns, and therefore I did not want to deal with setting that up on the fly in a report and am using "DoCmd.OpenQuery strName, acViewPreview, acReadOnly".  

Is there a way to manipulate the object that Access uses to push the query to paper rather than to create my own report?

Laura

Answer : Need to change docmd.OpenQuery acViewPreview Object

BUT, here is something interesting that kills me....  if I use the same query (my test query had 60 columns), which bombs out at column number 24 or so (depending on width) using my code, that SAME query lays out ALL of the columns when I use the DoCmd.OpenQuery strName, acViewPreview, acReadOnly, which is why I posted the question in the first place....arghhhhhh.....  If I could just use the same method/object, whatever it is, that Access uses to output the query and I could manipulate it, I would be fine!!!!!

?comments
Random Solutions  
 
programming4us programming4us