A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

# soft number of columns



 
 
Thread Tools Display Modes
  #1  
Old December 9th, 2006, 04:30 AM posted to microsoft.public.access.reports
Vsn
external usenet poster
 
Posts: 39
Default # soft number of columns

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


  #2  
Old December 9th, 2006, 05:20 AM posted to microsoft.public.access.reports
Allen Browne
external usenet poster
 
Posts: 11,706
Default # soft number of columns

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)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Vsn" vsn at hotmail wrote in message
...

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

Thx,
Ludovic



  #3  
Old December 9th, 2006, 06:42 AM posted to microsoft.public.access.reports
Vsn
external usenet poster
 
Posts: 39
Default # soft number of columns

Allan, thx. I thought it to be possible just to set the number of columns in
VBA code at the Open_report event.

Ludovic


"Allen Browne" wrote in message
...
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)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Vsn" vsn at hotmail wrote in message
...

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

Thx,
Ludovic





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.