Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a report stay in the same position!!

Status
Not open for further replies.

Agent009

Programmer
Apr 4, 2003
96
IE
I Want to set the location on a report in access to the same place every time.

I am printing a barcode on various pages and slowly but surely the reports printed move slightly off this means that some of the barcodes cannot be read.

Is there any way of making the position stay the same every time.

Agent009

 
Perhaps you have one of your controls slightly overlapping a margin. This usually results in a whole extra page, but might result in this type of behavior.
You might also write down the Left And Top values in design view, then set them manually in the OnFormat event of the section.
BARCODE.TOP = 0.2
BARCODE.LEFT = 4.3
 
Whoops! In looking at some code I've used, I think this is how you refer to a control's properties on format:
Dim ctlControl As Control
For Each ctlControl In Controls
If ctlControl.Tag = "BarCode" Then
ctlControl.Top = 0.2
End If
Next ctlControl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top