Subform in data sheet view

D

Dana Stricker

I have several subforms that people enter data on. The subfrom is in
datasheet view as a result they can adjust the columns. The problem is that
the subform populates a report and if the end user changes the width of the
columns then the report does not print correctly. How can I stop this?

Thanks,
Dana
 
M

Maurice

I assume you have a print button somewere on the form. If that's the case you
can set the columnwidths in code

try something like me.fieldname.columnwidth=xx

where ofcourse you have to reference the subformcontrols and the subformname
which coul be something like:

forms!mainformname!subformname!form.fieldname.columnwidth=xx

where xx stands for the designated with of the field.

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top