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  

How to move column forward?



 
 
Thread Tools Display Modes
  #1  
Old September 4th, 2007, 01:46 PM posted to microsoft.public.access.reports
senkurion
external usenet poster
 
Posts: 42
Default How to move column forward?

Hello,

I have a multicolumn report which looks like one below. This report takes
data from the table. I created this report using report wizard.
Now, lets say for activity A there is no activity for customer in "column
a" I would like the "column b" the aautomatically move forward.
Similarly say for Activity B , there is no record for "column a" and
"column b" In this case I would like the "column c" occupy the place of
"column a"so on and so on.
I have set all the text box and sections "Can shrink" property to "Yes". by
doing this nothing happened. may or it may be due to the line between
different headers? or i need to do something else, please help.

There is a line beteeen column header and column
_____________________________________________
Name
ID
_____________________________________________
Activity A ********
_____________________________________________
Column a Column b Column c Column d
_____________________________________________



_____________________________________________
Activity B************
_____________________________________________
Column a Coulmn b Column c Column d


  #2  
Old September 4th, 2007, 02:48 PM posted to microsoft.public.access.reports
Jeff Boyce
external usenet poster
 
Posts: 1,555
Default How to move column forward?

CanGrow & CanShrink properties provide vertical spacing, not horizontal.
I'm not aware of a built-in property to cause a column to "move left". Have
you tried searching on-line?

--
Regards

Jeff Boyce
www.InformationFutures.net

Microsoft Office/Access MVP
http://mvp.support.microsoft.com/

Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

"senkurion" wrote in message
...
Hello,

I have a multicolumn report which looks like one below. This report takes
data from the table. I created this report using report wizard.
Now, lets say for activity A there is no activity for customer in

"column
a" I would like the "column b" the aautomatically move forward.
Similarly say for Activity B , there is no record for "column a" and
"column b" In this case I would like the "column c" occupy the place of
"column a"so on and so on.
I have set all the text box and sections "Can shrink" property to "Yes".

by
doing this nothing happened. may or it may be due to the line between
different headers? or i need to do something else, please help.

There is a line beteeen column header and column
_____________________________________________
Name
ID
_____________________________________________
Activity A ********
_____________________________________________
Column a Column b Column c Column d
_____________________________________________



_____________________________________________
Activity B************
_____________________________________________
Column a Coulmn b Column c Column d



  #3  
Old September 4th, 2007, 05:14 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default How to move column forward?

Are you moving just the data or are there associated labels that have to be
moved also?

On alternative would be to move the bound controls around.

In the Format event of the relevant section
'Set the controls to their default positions (Inches * 1440)
Me.Text2.Left = 1.5*1440
Me.Text3.Left = 2.75*1440
Me.Text4.Left = 4*1440

Now, start moving them on top of each other as appropriate

If IsNull(Me.text1) Then
Me.text2.Left = Me.Text1.Left
End if

If IsNull(Me.Text2) then
Me.text3.Left = me.Text2.Left
End if

If IsNull(Me.Text3) then
Me.text4.Left = me.Text3.Left
End if

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"senkurion" wrote in message
...
Hello,

I have a multicolumn report which looks like one below. This report takes
data from the table. I created this report using report wizard.
Now, lets say for activity A there is no activity for customer in
"column
a" I would like the "column b" the aautomatically move forward.
Similarly say for Activity B , there is no record for "column a" and
"column b" In this case I would like the "column c" occupy the place of
"column a"so on and so on.
I have set all the text box and sections "Can shrink" property to "Yes".
by
doing this nothing happened. may or it may be due to the line between
different headers? or i need to do something else, please help.

There is a line beteeen column header and column
_____________________________________________
Name
ID
_____________________________________________
Activity A ********
_____________________________________________
Column a Column b Column c Column d
_____________________________________________



_____________________________________________
Activity B************
_____________________________________________
Column a Coulmn b Column c Column d




  #4  
Old September 6th, 2007, 09:52 AM posted to microsoft.public.access.reports
senkurion
external usenet poster
 
Posts: 42
Default How to move column forward?

I tried but no luck.

"Jeff Boyce" wrote:

CanGrow & CanShrink properties provide vertical spacing, not horizontal.
I'm not aware of a built-in property to cause a column to "move left". Have
you tried searching on-line?

--
Regards

Jeff Boyce
www.InformationFutures.net

Microsoft Office/Access MVP
http://mvp.support.microsoft.com/

Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

"senkurion" wrote in message
...
Hello,

I have a multicolumn report which looks like one below. This report takes
data from the table. I created this report using report wizard.
Now, lets say for activity A there is no activity for customer in

"column
a" I would like the "column b" the aautomatically move forward.
Similarly say for Activity B , there is no record for "column a" and
"column b" In this case I would like the "column c" occupy the place of
"column a"so on and so on.
I have set all the text box and sections "Can shrink" property to "Yes".

by
doing this nothing happened. may or it may be due to the line between
different headers? or i need to do something else, please help.

There is a line beteeen column header and column
_____________________________________________
Name
ID
_____________________________________________
Activity A ********
_____________________________________________
Column a Column b Column c Column d
_____________________________________________



_____________________________________________
Activity B************
_____________________________________________
Column a Coulmn b Column c Column d




  #5  
Old September 6th, 2007, 09:52 AM posted to microsoft.public.access.reports
senkurion
external usenet poster
 
Posts: 42
Default How to move column forward?

Thanks for the reply.
I need to move column togther with its heading. I tried your suggestion in
Detail section Where all my data are) of the report. When i run the programme
it says "run time error 438", The object does not support this property or
method.

I also tried using "Moveleft"instead of left, that also doesnot work.


"John Spencer" wrote:

Are you moving just the data or are there associated labels that have to be
moved also?

On alternative would be to move the bound controls around.

In the Format event of the relevant section
'Set the controls to their default positions (Inches * 1440)
Me.Text2.Left = 1.5*1440
Me.Text3.Left = 2.75*1440
Me.Text4.Left = 4*1440

Now, start moving them on top of each other as appropriate

If IsNull(Me.text1) Then
Me.text2.Left = Me.Text1.Left
End if

If IsNull(Me.Text2) then
Me.text3.Left = me.Text2.Left
End if

If IsNull(Me.Text3) then
Me.text4.Left = me.Text3.Left
End if

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"senkurion" wrote in message
...
Hello,

I have a multicolumn report which looks like one below. This report takes
data from the table. I created this report using report wizard.
Now, lets say for activity A there is no activity for customer in
"column
a" I would like the "column b" the aautomatically move forward.
Similarly say for Activity B , there is no record for "column a" and
"column b" In this case I would like the "column c" occupy the place of
"column a"so on and so on.
I have set all the text box and sections "Can shrink" property to "Yes".
by
doing this nothing happened. may or it may be due to the line between
different headers? or i need to do something else, please help.

There is a line beteeen column header and column
_____________________________________________
Name
ID
_____________________________________________
Activity A ********
_____________________________________________
Column a Column b Column c Column d
_____________________________________________



_____________________________________________
Activity B************
_____________________________________________
Column a Coulmn b Column c Column d





  #6  
Old September 6th, 2007, 01:08 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default How to move column forward?

Ok, I don't know why it didn't work for you. It works for me in my test

This was a simple test that I ran in a test database and it worked
perfectly.

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.txtFormatted.Left = Me.txtSomeNumber.Left
End Sub

I did forget to mention that you will probably want to set the control's
back style to transparent or make sure that the "stacking" order of the
controls is such that Control 2 is in front of Control 1, Control 3 is in
front of control2, etc.

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"senkurion" wrote in message
...
Thanks for the reply.
I need to move column togther with its heading. I tried your suggestion in
Detail section Where all my data are) of the report. When i run the
programme
it says "run time error 438", The object does not support this property or
method.

I also tried using "Moveleft"instead of left, that also doesnot work.


"John Spencer" wrote:

Are you moving just the data or are there associated labels that have to
be
moved also?

On alternative would be to move the bound controls around.

In the Format event of the relevant section
'Set the controls to their default positions (Inches * 1440)
Me.Text2.Left = 1.5*1440
Me.Text3.Left = 2.75*1440
Me.Text4.Left = 4*1440

Now, start moving them on top of each other as appropriate

If IsNull(Me.text1) Then
Me.text2.Left = Me.Text1.Left
End if

If IsNull(Me.Text2) then
Me.text3.Left = me.Text2.Left
End if

If IsNull(Me.Text3) then
Me.text4.Left = me.Text3.Left
End if

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"senkurion" wrote in message
...
Hello,

I have a multicolumn report which looks like one below. This report
takes
data from the table. I created this report using report wizard.
Now, lets say for activity A there is no activity for customer in
"column
a" I would like the "column b" the aautomatically move forward.
Similarly say for Activity B , there is no record for "column a" and
"column b" In this case I would like the "column c" occupy the place of
"column a"so on and so on.
I have set all the text box and sections "Can shrink" property to
"Yes".
by
doing this nothing happened. may or it may be due to the line between
different headers? or i need to do something else, please help.

There is a line beteeen column header and column
_____________________________________________
Name
ID
_____________________________________________
Activity A ********
_____________________________________________
Column a Column b Column c Column d
_____________________________________________



_____________________________________________
Activity B************
_____________________________________________
Column a Coulmn b Column c Column d







  #7  
Old September 6th, 2007, 03:02 PM posted to microsoft.public.access.reports
senkurion
external usenet poster
 
Posts: 42
Default How to move column forward?

it worked following way

I put following on report section " onactivate"

Me.text2.Left = Me.Text1.Left
Me.text4.Left = me.Text3.Left
etc and offcourse i change text to my fields name
I didnt use If function

Anyway now its working perfectly,
Thanks for your the suggestion


"John Spencer" wrote:

Ok, I don't know why it didn't work for you. It works for me in my test

This was a simple test that I ran in a test database and it worked
perfectly.

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.txtFormatted.Left = Me.txtSomeNumber.Left
End Sub

I did forget to mention that you will probably want to set the control's
back style to transparent or make sure that the "stacking" order of the
controls is such that Control 2 is in front of Control 1, Control 3 is in
front of control2, etc.

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"senkurion" wrote in message
...
Thanks for the reply.
I need to move column togther with its heading. I tried your suggestion in
Detail section Where all my data are) of the report. When i run the
programme
it says "run time error 438", The object does not support this property or
method.

I also tried using "Moveleft"instead of left, that also doesnot work.


"John Spencer" wrote:

Are you moving just the data or are there associated labels that have to
be
moved also?

On alternative would be to move the bound controls around.

In the Format event of the relevant section
'Set the controls to their default positions (Inches * 1440)
Me.Text2.Left = 1.5*1440
Me.Text3.Left = 2.75*1440
Me.Text4.Left = 4*1440

Now, start moving them on top of each other as appropriate

If IsNull(Me.text1) Then
End if

If IsNull(Me.Text2) then
Me.text3.Left = me.Text2.Left
End if

If IsNull(Me.Text3) then
End if

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"senkurion" wrote in message
...
Hello,

I have a multicolumn report which looks like one below. This report
takes
data from the table. I created this report using report wizard.
Now, lets say for activity A there is no activity for customer in
"column
a" I would like the "column b" the aautomatically move forward.
Similarly say for Activity B , there is no record for "column a" and
"column b" In this case I would like the "column c" occupy the place of
"column a"so on and so on.
I have set all the text box and sections "Can shrink" property to
"Yes".
by
doing this nothing happened. may or it may be due to the line between
different headers? or i need to do something else, please help.

There is a line beteeen column header and column
_____________________________________________
Name
ID
_____________________________________________
Activity A ********
_____________________________________________
Column a Column b Column c Column d
_____________________________________________



_____________________________________________
Activity B************
_____________________________________________
Column a Coulmn b Column c Column d








  #8  
Old September 7th, 2007, 10:46 AM posted to microsoft.public.access.reports
NOTICIAS
external usenet poster
 
Posts: 4
Default OOOOOOOOOOOOOO


"OOOOOOOOOOOOOOOO


 




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 01:16 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.