Link to home
Start Free TrialLog in
Avatar of MonkeyPie
MonkeyPieFlag for Australia

asked on

Access 2010 report - fold marker in absolute position

I have an access 2010 report - an invoice.  The job description text field CAN GROW - so anything from 1 line to around 6 lines.  I want to have a little fold marker on the left side of the page underneath this job desc.  I currently use a label with "----".  This works well as long as the desc is just one line, but of course it moves down the paper when the desc grows.

Any ideas how to include a little fold marker in a fixed position on the paper?
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Can't you move the marker so that it is alongside the description, not underneath?
Avatar of MonkeyPie

ASKER

No.
Then place the line so that it runs through/ across  the textbox  (increase the size of the textbox if required) rather than below it.  It will then stay in the same place even if the textbox exapands.
You could try moving it AFTER the relevant Format event. Just determine the position you need it to be in , and then use code like this:

Me.YourLabel.Top = 1000
I'm sure there is an easier way to get a full size 8 1/2" x 11"  jpg from a report, but I cannot think of it at the moment.

Create a report that has nothing on it but your fold lines.  Print the report and scan it as a jpg file.  Then open your report and set the Picture property to this .jpg file.
An alternative to that would be to use a very narrow subreport which contains you fold lines.  You would need to create a Report holder, that holds this subreport and what was your main report would now also be a subreport in the "holder".

Set your margins very narrow.
Can you post a screenshot of what you have?
Here is a really simple sample of the use of the subform idea.
PageFolds.mdb
I want to go with LSM Consulting's solution to use me.FoldMark.Top=1000.  It is the most simple and straightforward.

You say "You could try moving it AFTER the relevant Format event. "  Not sure what you mean by "IT" and where to put it though.  Both the offending DESC field and the fold mark are in the report header, so I tried putting me.FoldMark.top=1000 in reportHeader_Format but that didn't work.

Where should I put the code?

Thanks you for your help - this is at least the 2nd time you have solved one of my problems!
Take a look at the subform idea.  It is very simple to implement.
"It" is the label control.

but that didn't work.
What didn't work? Did it not move, or was there an error?
I kept the label control where it was - in the report header, and in the report header format event I had code: me.FoldMark.Top=6600 (approx 10cm) as you suggested.

The foldmark appear under the desc.  So on the single line desc it was in the correct place, but in the 4 line desc it had moved down. So, where should I move the foldmar label control, and where should I put the code?

Thank you.
Have you looked at my subreport example?  This is straight forward, no code, just copy the main and subforms into your app and change the source object for the center subreport to the name of your report (you may have to adjust the widths of the subreports, but not much.
Takes a few seconds to do this...
Capture17.PNG
Hi Peter57r.  I have looked at your image - you say 'on the insert tab, the galleries include items that ...".  I see the fold line is exactly what I want, but in Access 2010 where are these?  I do not have an INSERT tab.  

Just one other complication - this app is in 64 bit Office and so Active X controls are not available to me.  (I am doing this system to a very exact user specification, and 64 bit is what they want.)  So let's hope this item you are suggesting is not an Active X control.

Thank you.
More for Peter57r ...  I have another computer with Access 2003 on it.  I've just looked now, and still can't see how you did that dotted fold line.  Can you tell me exactly what sort of control you used and how?  Thank you.
ASKER CERTIFIED SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Peter57R.  I fiddled a little with the desc text box.  By making it deeper than one 1 line, and setting Can Shrink to YES I was able to set the fold mark beside the desc text box, and your solution worked.