473,386 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Center memo field vertically

Is it possible to center a memo field value vertically? I use a memo field
for printing address labels and I would like the addresses to show up
centered vertically.
Thanks,
john
Feb 24 '07 #1
4 3741
John wrote:
Is it possible to center a memo field value vertically? I use a memo field
for printing address labels and I would like the addresses to show up
centered vertically.
Thanks,
john
At first I thought you meant to have it centered. not left justified.
Maybe you do. If so, click the field and set the justification as
centered (in the format tab of property sheet)

But that sounded ridiculous so I thought maybe you are concatenating the
address to the city to the state etc. If so, you should put in a nlcr
in it. Ex:
Me.MemoFld = Address1 & vbNewLine & Address2 & vbNewLine & City...

Feb 24 '07 #2
"salad" <oi*@vinegar.comschreef in bericht
news:4h*****************@newsread2.news.pas.earthl ink.net...
John wrote:
>Is it possible to center a memo field value vertically? I use a memo
field for printing address labels and I would like the addresses to show
up centered vertically.
Thanks,
john

At first I thought you meant to have it centered. not left justified.
Maybe you do. If so, click the field and set the justification as
centered (in the format tab of property sheet)

But that sounded ridiculous so I thought maybe you are concatenating the
address to the city to the state etc. If so, you should put in a nlcr in
it. Ex:
Me.MemoFld = Address1 & vbNewLine & Address2 & vbNewLine & City...
Thanks. My address memo field value can take 4 to 7 lines, depending on
whether a department and subdepartment are included. If it's 4 lines then
the lower part of the label is white. I think I will fiddle with adding an
extra line at the start in that case so that the value seems centered
vertically.
john
Feb 24 '07 #3
See:
http://www.lebans.com/verticaljustification.htm
VerticalJustificationA2K.zip is a database containing a function to allow
for vertical centering of the contents of a Label or TextBox control. Works
with both Forms and Reports.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"John" <jo@hn.comwrote in message
news:er***********@textnews.wanadoo.nl...
"salad" <oi*@vinegar.comschreef in bericht
news:4h*****************@newsread2.news.pas.earthl ink.net...
>John wrote:
>>Is it possible to center a memo field value vertically? I use a memo
field for printing address labels and I would like the addresses to show
up centered vertically.
Thanks,
john

At first I thought you meant to have it centered. not left justified.
Maybe you do. If so, click the field and set the justification as
centered (in the format tab of property sheet)

But that sounded ridiculous so I thought maybe you are concatenating the
address to the city to the state etc. If so, you should put in a nlcr in
it. Ex:
Me.MemoFld = Address1 & vbNewLine & Address2 & vbNewLine & City...

Thanks. My address memo field value can take 4 to 7 lines, depending on
whether a department and subdepartment are included. If it's 4 lines then
the lower part of the label is white. I think I will fiddle with adding an
extra line at the start in that case so that the value seems centered
vertically.
john

Feb 25 '07 #4
Thanks. Works great!
john

"Stephen Lebans" <ForEmailGotoMy.WebSite.-WWWdotlebansdot...@linvalid.com>
schreef in bericht news:Md*****************@ursa-nb00s0.nbnet.nb.ca...
See:
http://www.lebans.com/verticaljustification.htm
VerticalJustificationA2K.zip is a database containing a function to allow
for vertical centering of the contents of a Label or TextBox control.
Works with both Forms and Reports.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"John" <jo@hn.comwrote in message
news:er***********@textnews.wanadoo.nl...
>"salad" <oi*@vinegar.comschreef in bericht
news:4h*****************@newsread2.news.pas.earth link.net...
>>John wrote:

Is it possible to center a memo field value vertically? I use a memo
field for printing address labels and I would like the addresses to
show up centered vertically.
Thanks,
john

At first I thought you meant to have it centered. not left justified.
Maybe you do. If so, click the field and set the justification as
centered (in the format tab of property sheet)

But that sounded ridiculous so I thought maybe you are concatenating the
address to the city to the state etc. If so, you should put in a nlcr
in it. Ex:
Me.MemoFld = Address1 & vbNewLine & Address2 & vbNewLine & City...

Thanks. My address memo field value can take 4 to 7 lines, depending on
whether a department and subdepartment are included. If it's 4 lines then
the lower part of the label is white. I think I will fiddle with adding
an extra line at the start in that case so that the value seems centered
vertically.
john


Feb 25 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: FL | last post by:
Hi Everyone, I know howto center a block using margin-left: auto ; margin-right: auto ; but I'm trying to center vertically a box, any idea to solve this?
10
by: john T | last post by:
Is there anyway to vertically center a html table using css in such a way it does not alter the html table. When I tryied it just screws up.
3
by: GorDon | last post by:
Hi, I have a report based on a query. The query grabs a memo field from my main table, yet when I display the memo field in the report it truncates the memo field (the field needs to hold more...
2
by: Kevin | last post by:
Thanks for the very quick response posting that I can use a memo datatype to store large amounts of text. I understand that I can turn on "Can Grow" for a memo type, but is there either a...
11
by: Serg | last post by:
I had some CSS problems, and they were solved by someone who pointed out to me that I should have <!DOCTYPE ..... at the top of my code, which I now do. And it fixed all the inheritance...
8
by: AA Arens | last post by:
I have a Notes block and have to buttons to have the cusror moved to the top as well as the bottom of the contents. Here is the VB of the buttons: To top: Notes.SelStart=0 To bottom:...
9
by: RMC | last post by:
Hello, I'm looking for a way to parse/format a memo field within a report. The Access 2000 database (application) has an equipment table that holds a memo field. Within the report, the memo...
2
by: Roger | last post by:
I've got two tables in sql2005 which have an 'ntext' field when I linked the first table in access97 last week using an odbc data source the access-field type was 'memo' when I link the 2nd...
10
by: ARC | last post by:
This is mainly a speed question. In this example: I have a QuotesHdr table that has a few memo fields. If these memo fields are used extensively by some users, and if their are a large number of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.