473,804 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Set Vertical Text in Access?

132 New Member
Hi!
Vertical text when placed in a report is read from top to bottom,
is it possible to have vertical text so it's read from bottom to top
(rotated 180 degrees from the default)?
Example.
I am working with 2010. In the report if you select yes in the properties for vertical it does place it Vertical.
However, it places text so the bottom of the text aligned with the
left edge of the paper; my question is,
Is there a way to align it with right edge of the paper?
ie. I want the word HOME to read like
Expand|Select|Wrap|Line Numbers
  1. E
  2. M
  3. O
  4. H  this is Bottom to top
  5.  
  6. and Not like
  7. H
  8. O
  9. M
  10. E   this is top to bottom, ofcourse with the text aligned 90degree
  11.  
IS this possible in access?
Please help!!!!
Dec 25 '10 #1
7 7228
ADezii
8,834 Recognized Expert Expert
As a last resort, you can accomplish this with Code in the Format() Event of the Detail Section. If you are interested, let me know and I'll Post the Code.
Dec 25 '10 #2
Mr Key
132 New Member
Yes indeed I am!
With any cost!!!
Dec 25 '10 #3
ADezii
8,834 Recognized Expert Expert
The key to making this work, and look presentable, is to:
  1. Set the Can Grow Property of the Text Box displaying the Vertical Text ([txtLNameVer]) to Yes.
  2. Using a Fixed Width Font for the Text Box displaying the Vertical Text, in this case I used Courier New.
  3. The Code in the Format() Event will do the rest of the work in displaying the Text in Reverse, Vertical Format, for the [LastName] Field.
  4. Download the simple Attachment that I have created for you to see all this in action.
  5. The Code the Detail_Format() Event is as follows:
    Expand|Select|Wrap|Line Numbers
    1. Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    2. Dim strLast As String
    3. Dim intCtr As Integer
    4. Dim strBuild As String
    5.  
    6. strLast = Me![LastName]
    7.  
    8. For intCtr = Len(strLast) To 1 Step -1
    9.   strBuild = strBuild & Mid$(strLast, intCtr, 1) & vbCrLf
    10. Next
    11.  
    12. Me![txtLNameVer] = Left$(strBuild, Len(strBuild) - 2)
    13. End Sub
Attached Files
File Type: zip Vertical.zip (19.4 KB, 352 views)
Dec 25 '10 #4
Mr Key
132 New Member
Thanks!
I couldnt open the db,
Give me the meaning of each applied code, line by line and word by word for the sake of learning so that I can play with.
You may start from
Expand|Select|Wrap|Line Numbers
  1. For intCtr = Len(strLast) To 1 Step -1
  2.   strBuild = strBuild & Mid$(strLast, intCtr, 1) & vbCrLf
  3. Next
  4.  
  5. Me![txtLNameVer] = Left$(strBuild, Len(strBuild) - 2)
  6. End Sub
I have tried to learn on my own but couldnt make it.
Thanks!!!
Dec 25 '10 #5
ADezii
8,834 Recognized Expert Expert
  1. Starting at the end of the String, and ending at the beginning, read each character, add it to a pre-existing String (strBuild), then add a CR/LF (Carriage Return/Line Feed) after each character so that they appear on different lines.
    Expand|Select|Wrap|Line Numbers
    1. For intCtr = Len(strLast) To 1 Step -1 
    2.   strBuild = strBuild & Mid$(strLast, intCtr, 1) & vbCrLf 
    3. Next 
  2. Strip the Trailing CR/LF from the String (strBuild) that has been built, and assign this Value to the Text Box Control ![txtLNameVer] that will contain this String which will be the Last Name for each Record in Reverse, Vertical order.
    Expand|Select|Wrap|Line Numbers
    1. Me![txtLNameVer] = Left$(strBuild, Len(strBuild) - 2) 
  3. I cannot understand why you cannot Open the Demo Database, what Error are you getting when you try to do so?
Dec 26 '10 #6
Mr Key
132 New Member
Thanks alot! Finally I got the point and it works!
Thanks
Dec 26 '10 #7
ADezii
8,834 Recognized Expert Expert
You are quite welcome.
Dec 26 '10 #8

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

Similar topics

1
3111
by: Joop | last post by:
Does anybody know a way to print a vertical text field spread over more detail lines? regards Joop
1
1852
by: Rocketman | last post by:
Can you have Horizontal and Vertical text in a Textbox or RichTextbox and can u have both together.
1
2649
by: James Dean | last post by:
Can you make vertical text in a richtextbox or is there any way around this like make the string vertical outside the textbox then try to paste it in that way into the textbox?.... *** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it!
0
317
by: Stephen Muecke | last post by:
I use the following code to draw vertical text in an ownerdrawn StatusBar The text is drawn top to bottom. Is there a way to have the text drawn bottom to top? Stephen Private Sub FormatClaimPermissions(ByVal sender As System.Object, _ ByVal sbdevent As System.Windows.Forms.StatusBarDrawItemEventArgs) _ Handles ClaimPermissionsHeaderStatusBar.DrawItem, _ ExtensionPermissionsHeaderStatusBar.DrawItem, _
5
2955
by: Stan McCann | last post by:
Is there a way, or does anyone know if maybe in CSS3, there is a plan to implement vertical rotated text? At http://alamo.nmsu.edu/roundup/schedule.html, in the information I was provided, "Exhibits Open" is shown rotated to the left reading from the bottom up. Other than a graphic, is there any way to implement it? Future plans? -- Stan McCann, "Uncle Pirate" http://stanmccann.us/
2
2192
by: marss | last post by:
The text for the chart Y-axis title is to be drawn vertically. Here is the snippet of my code. ..... StringFormat drawFormat = new StringFormat(); drawFormat.FormatFlags = StringFormatFlags.DirectionVertical ; //g is object of type System.Drawing.Graphics g.DrawString("Period", font, Brushes.Black, 10, 10, drawFormat); ..... Standard functionality allows to do that but the text is drawn from the
0
1257
MSeda
by: MSeda | last post by:
I want to use vertical text on a report, but I want the top oriented to the left and Access's verticle text property automatically orients the top to the right. Is there any way to change this.
4
7435
by: umlv | last post by:
Hi, I have a question about vertical text property for labels. I have set several labels to show vertical text on one of my forms. I had no problems with them on my desktop computer. Now I installed the same application on my laptop and the text disappeared. The only way I found in order to reveal them was to change the Font to "Aharoni". I do not want to use Aharoni. Other computers may not have it
4
2724
by: marfola | last post by:
I'm trying to implement bottom-to-top vertical text using CSS attributes in IE : writing-mode: tb-rl; filter: flipv fliph; But I have encountered the following: the text is displayed with a grey shadow (instead of anti-alias). It seems that the problem is caused by the "filter:flip" attribute. Does anyone have a work around? (If I write the same text without the "filter" attribute, the grey shadow disappears but my text...
0
9715
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10600
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10354
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9175
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6867
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3835
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3002
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.