473,569 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vertical line between snaking columns in ms access reports

6 New Member
In Access 2003 I have a multi-column report (3 columns).
I would like to get 1 continuous vertical line from the top of the page to the bottom of the page, between columns 1 and 2 and between columns 2 and 3.

Is there anyway to create this line?

If so, is there any way to print this line only if there would data in the column to the right of the line?
Aug 16 '08 #1
5 8973
ADezii
8,834 Recognized Expert Expert
The code to dynamically draw Lines in a Report must be placed in the Print() Event of the Report's Detail Section. The following code will draw a Vertical Red Line, 25 Pixels wide, exactly 1000 Pixels from the Left Margin of the Report, spanning the entire Vertical Length of the Report.
Expand|Select|Wrap|Line Numbers
  1. Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
  2. Dim lngColor As Long
  3.  
  4. Me.ScaleMode = 3    'Pixels
  5. Me.DrawWidth = 25   'in Pixels
  6.  
  7. lngColor = RGB(255, 0, 0)       'Red
  8.  
  9. Me.Line (1000, 0)-(1000, Me.ScaleHeight), lngColor
  10. End Sub
Aug 16 '08 #2
appmab
6 New Member
Thank you! I can now get the lines. I am, however, having a slight problem. I'm getting a slight break in the lines on the report between detail lines and also between groups, so it's not an absolutely solid line.

My report would be:

Allen, Michael
100 Main St.
Anyplace, US
..Allen car1
..Allen car2

Axelrod, Timothy
200 Elm St
Sunrise, US
.. Axelrod car1
.. Axelrod car2

The personal information is in a group header and the cars are in the detail section.

I'm getting slight breaks in the line between Allen car 1 and Allen car 2, between Alexrod car 1 and Axelrod car2, and between Allen Car 2 and Alexrod, Timothy.
Am I doing something wrong, or is there any way to fix this?

Also, the data in the columns are not always the same length because people have different number of cars. The line is only extending down as far as the last detail line, and I understand why, but is there any solution for that?
Thank you.
Aug 16 '08 #3
ADezii
8,834 Recognized Expert Expert
Thank you! I can now get the lines. I am, however, having a slight problem. I'm getting a slight break in the lines on the report between detail lines and also between groups, so it's not an absolutely solid line.

My report would be:

Allen, Michael
100 Main St.
Anyplace, US
..Allen car1
..Allen car2

Axelrod, Timothy
200 Elm St
Sunrise, US
.. Axelrod car1
.. Axelrod car2

The personal information is in a group header and the cars are in the detail section.

I'm getting slight breaks in the line between Allen car 1 and Allen car 2, between Alexrod car 1 and Axelrod car2, and between Allen Car 2 and Alexrod, Timothy.
Am I doing something wrong, or is there any way to fix this?

Also, the data in the columns are not always the same length because people have different number of cars. The line is only extending down as far as the last detail line, and I understand why, but is there any solution for that?
Thank you.
I would actually have to physically look at the Report and its layout, in order to even venture a guess as to what is causing this.
Aug 17 '08 #4
appmab
6 New Member
Thanks. I can't send the report due to the data. I could send the code. I tried this on all my other reports which I am making snaking columns which I could send, and unfortunately (or fortunately) it is working with them. So it definitely helped me on the others. I'll have to keep plugging away on this one. Thank you.
Aug 20 '08 #5
Changing ScaleHeight to Height seemed to solve the problem for me.

I was getting gaps because some fields had CanGrow = true
Oct 1 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
22741
by: intl04 | last post by:
I have a memo field that is included in some Access reports I created. Is there some way for the memo field to display nicely formatted text, with line breaks between paragraphs? Or is it necessary to export the report? I tried exporting a report by using the .rtf rich-text format (the plain-text format was the only other word-processing...
3
2347
by: James P. | last post by:
Help, In Access 2000, I have a bound column - textbox. As soon as I type three dots (periods) in the textbox and keep typing (more dots or anything else), it automatically converts the three dots to a bolded vertical line. How could I turn that vertical line off? Thanks in advance, James
6
1976
by: (Pete Cresswell) | last post by:
I've got a situation where the user is expanding nodes in a TreeView and below a certain level, the child nodes become too numerous for them to deal with easily on a straight-up sequential list. What I'd like to do is populate a subform next to the tree view with the child items presented in a denser format. One essential feature of that...
16
48842
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use a commercial program such as Adobe Acrobat and its associated API. The technique uses Ghostscript and Redirection Port Monitor - two free...
3
1543
by: stawicki | last post by:
I have a report that uses snaking columns to generate four 2.5 inch columns in landscape mode. It is used to print a double-sided document whch is then cut down the middle and bound. The problem is that I need to be able to make the spacing between columns 2 and 3 larger than between 1 and 2 or 3 and 4, so that there is sufficient room...
1
2509
by: diesel | last post by:
I have an OWC chart that works great Our client has requested that we add a vertical line at a specific point on the chart For example the horizontal axis contains 2,4,6,8 The vertical line would appear at 3.7 and go to the top of the y axis in a specific color I have searched many posts for OWC and so far I have not found one with a...
16
6497
by: JoeW | last post by:
I'm utilizing a database that I created within MS Access within a program I've created in VB.NET. I am using the VB front end to navigate the information, but want to be able to print a report, that I've also created within MS Access. I've attempted using the Access.Application instance, but I get errors when it tries to load the ...
0
1776
by: ashkaan57 | last post by:
Hi, I am trying to put a vertical line between two DIVs that are contianers for menu and content. I added another DIV in between them and set the background-image and repeat-y but it doesn't work. Any ideas on how I can do this is greatly appreciated. The general layout is:
1
5563
by: senort01 | last post by:
Is it possible to create a table within MS Access Reports so that horizontal data stays aligned? For example, I have two columns of data. The left column is fixed, the right column will be dynamically generated based on data in the table, usually larger text segments. I need some way to maintain the horizontal alignment of text on the left...
0
7693
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6277
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5501
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2105
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.