Make one text box start right after the end of another?

  • Thread starter Thread starter Jeff Heikkinen
  • Start date Start date
J

Jeff Heikkinen

Say I have two text boxes in DIFFERENT FONTS (so as far as I can tell, I
can't just make them into one text box), and I want one to have its left
edge at the other's right edge in a report. Basically I want it to look
like this (view this in a fixed-width font or it won't look right):

Field 1 [Field 2]
Longer Field 1 [Field 2]
Really really long long field 1 [Field 2]

instead of this

Field 1 [Field 2]
Longer Field 1 [Field 2]
Really really long long field 1 [Field 2]

The left one will vary in size depending on what text is in it, and I
don't want the two to ever overlap, which I had happening when I was
experimenting with this.

In one case it would be nice in addition if the right text box could
continue UNDER the left one if it needs to wrap. For example, I would
like to make Access print this:

Name: Blah blah blah
blah blah

instead of this:

Name: Blah blah blah
blah blah

with the "name" part in bold and/or a different font than the blah part.

Is there a way to do either of these?
 
Jeff:

There are two approaches. 1.) Use a Rich Text control to use variable fonts
and font attributes within a string of text, or for simply mixing bold and
non-bold. Take a look at this from Stephen Leban's web site:
http://www.lebans.com/mixbold-plain.htm (Note he also has a Rich text
control you can download....
 
SA, worshipped by llamas the world over, wrote...
Jeff:

There are two approaches. 1.) Use a Rich Text control to use variable fonts
and font attributes within a string of text, or for simply mixing bold and
non-bold. Take a look at this from Stephen Leban's web site:
http://www.lebans.com/mixbold-plain.htm (Note he also has a Rich text
control you can download....

Thanks, I'll try that - but what was the other approach? You only gave
one :-).
 
SA, worshipped by llamas the world over, wrote...
Jeff:

There are two approaches. 1.) Use a Rich Text control to use variable fonts
and font attributes within a string of text, or for simply mixing bold and
non-bold. Take a look at this from Stephen Leban's web site:
http://www.lebans.com/mixbold-plain.htm (Note he also has a Rich text
control you can download....

1. In at least the first of these databases, I couldn't find the
functions he was talking about; the only custom function had a name
similar to MakeFit. If this allows me to mix bold and plain, which I
doubt based on the name, it is far from clear how.
2. None of the databases on that page are in the current version of
Access. Will these functions they supposedly have even work in Access
XP?
 
Back
Top