Superscript and Subscript in Reports and forms

H

Hennie

Good Day,

For years I have been frustrated with Access and the inability of creating
reports with chemical formulas where subscript or a formula with superscript
was required. I assume there are several others with the same frustration
as I had. I have stumbled on a solution for this problem and it is a work
around from Microsoft Word as it cannot be done in Access. I have found two
different ways to accomplish this.

There are three different fonts with which superscripts and subscripts can
be achieved. With Office 2007, Calibri and with Office 2003, Lucida Sans
Unicode and Palatino Linotype.

To enter subscripts try the following in Word: Insert\Symbol and find one of
the three mentioned fonts. On the right hand side above the display box
there is a Subset combo box. Find Subscript and Superscript in the list and
insert the letter required. For sulfuric acid H2SO4 insert the two and the
four. Unfortunately the whole formula must be in any of the three fonts.
Copy the formula and transfer to the label's Caption. Alternatively it can
be pasted as an OLEUnbound Object Frame. Using the second method Word's
Superscript/subscript function can be used with any font. The font weight
and size must be done in Word. The only thing I do not know is what effect
it will have down the road.

A second tip to pass along is to create an Input mask for numbers. If you
try to use the input mask wizard on numbers an error message appears saying
"Input Mask Wizard only works with text or date field types". Change the
number field to a text field and complete the process for the number field
including the number of decimals required. Click OK. Using it as a text
field will not permit you to do any calculation on the data. Changing the
field back to numbers and leave the mask in place will give you the required
input mask.

Good luck

Hennie
 
S

Stephen Lebans

Glad to hear you found a working solution. If you don't mind a little bit of
VBA coding then another possible solution if to use the Print method of the
Report object to render the desired characters yourself.
See:
http://www.lebans.com/baseline.htm
BaseLine.zip is a database containing functions allowing you to place
different size Fonts on the same BaseLine.Also contains a Report
demonstrating how to have the contents of one control line up with the last
row of another control that has CanGrown(n). Use the GetTextMetrics API to
calculate the Ascende/Descender for the Font.

Or

http://www.lebans.com/mixbold-plain.htm

Lady.zip is a database containing functions to allow the developer to mix
Bold and Plain formatting within a single Control. Demonstrates how to use
the Print method of the Report object..NEW - Feb. 18/2000

A97andA2kClaudio.zip are databases containing functions to allow the
developer to mix Bold and Plain formatting within a single Control. This is
an extension/modification to the original Lady.zip. Author Luiz Claudio

A97Taxonomy.zip is a database containing functions to allow the developer to
mix Bold and Plain formatting within a single Control. Demonstrates how to
use the Print method of the Report object. Author Bill Kramer


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
H

Hennie

Thanks for the reply. I have gone through your site before and there is
always something new one can learn. Thank you that options and that you are
willing to share it with others.

I sure hope that mine will benifit others.

Hennie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top