# soft number of columns

  • Thread starter Thread starter Vsn
  • Start date Start date
V

Vsn

Hi,

How can i set the number of columns I would like to use, in VBA at the, i
suppose, Report_Open event?

Thx,
Ludovic
 
You can CreateReportControl only in design view.
That's not very practical, e.g. it prevents you creating an MDE.

A better solution is to place an text box on the report for every field you
may need. Then in Report_Open:
- show/hide the text boxes you need (Visible property),
- place and size them (Left, Top, Width),
- bind them (Control Source.)

If you name them appropriately (e.g. Text0 to Text99), you can refer to them
in a loop like this:
Me.Controls("Text" & i)
 
Allan, thx. I thought it to be possible just to set the number of columns in
VBA code at the Open_report event.

Ludovic
 

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

Similar Threads

Dynamic report header 2
get to record source 2
Filter question 6
Using 'column(n)' in a query/SQL 1
command button color 2
Is Sheet Empty and unused 8
creating tables with VBA 10
Data from record source 2

Back
Top