J
Jeff Heikkinen
(This is a more detailed version of a question I posted a few days ago.)
Sorry, but I'm VERY new to Access. I have the RTF control that someone
directed me to, from http://www.lebans.com/richtext.htm#RTF2 - but I
have no idea how to actually use it! As far as I could tell, the
documentation on that site presupposed knowledge I simply don't have.
Before I forget, I'm using Access XP.
The control seems to create something like a text box, that you can type
in. I've even added it to my toolbox for designing reports and the
like. But what I type in it doesn't stay there! If I switch from
Design View to Print Preview, the preview doesn't show what I put in -
it shows the words "RTF Control Design View Window", once. Clearly
there is something I am missing here.
(I also can't see what I'm selecting. I've discovered through
experimentation that the text I drag the mouse over DOES get selected,
but it is not shown highlighted on-screen. On top of that the cursor's
apparent on-screen position isn't always the same as the position the
program treats it as being in. I consider these serious problems,
especially when combined, considering that all the functionality of that
control seems to be accessed by highlighting the text you want to change
and goign to the right-click menu. There are keyboard shortcuts listed
on the Lebans site, but not for most of the things I want to do.)
Recently I've learned that this may be the wrong approach entirely. A
kind person on another group told me:
**********
I don't have much experience with RTF controls. One thing to remember is
that many or most of them simply won't work properly on an Access form.
Assuming you have an Access-compatible one, the general idea is to bind
its RichText (or similar) property to a memo field (or OLE field if
that's what its documentation says) and set various other properties. If
the selection isn't visible, you may just need to adjust some properties
- or it may mean it has problems with your version of Access.
**********
Okay, point by point:
1. Since it was on an Access help site I assumed it was compatible with
Access. If that's not the case, what's the point of it? (serious
question) Is it compatible with my version of Access, and if not can
anyone point me to one that is?
2. I'm not sure I understand the statement about binding the RichText
property. I've looked through the properties of a Memo field I want to
change and there is no obvious way to do this.
3. That same sentence also makes it sound like I can't do what I was
originally asking about, namely mix different formats in a text box on a
report that has an *expression* in it. What I want is for a text box to
contain something like "Field1 [field2]" with the field1 part formatted
differently from the brackets and the field2 part. (I can't just do it
with two text boxes, at least not in any way I've found, since field1's
width varies considerably, and I can't find a way to make the location
of the left edge of field2's text box vary with it.)
Should I just give up on using Access for this and just use a desktop
publishing program to format this particular report?
Sorry, but I'm VERY new to Access. I have the RTF control that someone
directed me to, from http://www.lebans.com/richtext.htm#RTF2 - but I
have no idea how to actually use it! As far as I could tell, the
documentation on that site presupposed knowledge I simply don't have.
Before I forget, I'm using Access XP.
The control seems to create something like a text box, that you can type
in. I've even added it to my toolbox for designing reports and the
like. But what I type in it doesn't stay there! If I switch from
Design View to Print Preview, the preview doesn't show what I put in -
it shows the words "RTF Control Design View Window", once. Clearly
there is something I am missing here.
(I also can't see what I'm selecting. I've discovered through
experimentation that the text I drag the mouse over DOES get selected,
but it is not shown highlighted on-screen. On top of that the cursor's
apparent on-screen position isn't always the same as the position the
program treats it as being in. I consider these serious problems,
especially when combined, considering that all the functionality of that
control seems to be accessed by highlighting the text you want to change
and goign to the right-click menu. There are keyboard shortcuts listed
on the Lebans site, but not for most of the things I want to do.)
Recently I've learned that this may be the wrong approach entirely. A
kind person on another group told me:
**********
I don't have much experience with RTF controls. One thing to remember is
that many or most of them simply won't work properly on an Access form.
Assuming you have an Access-compatible one, the general idea is to bind
its RichText (or similar) property to a memo field (or OLE field if
that's what its documentation says) and set various other properties. If
the selection isn't visible, you may just need to adjust some properties
- or it may mean it has problems with your version of Access.
**********
Okay, point by point:
1. Since it was on an Access help site I assumed it was compatible with
Access. If that's not the case, what's the point of it? (serious
question) Is it compatible with my version of Access, and if not can
anyone point me to one that is?
2. I'm not sure I understand the statement about binding the RichText
property. I've looked through the properties of a Memo field I want to
change and there is no obvious way to do this.
3. That same sentence also makes it sound like I can't do what I was
originally asking about, namely mix different formats in a text box on a
report that has an *expression* in it. What I want is for a text box to
contain something like "Field1 [field2]" with the field1 part formatted
differently from the brackets and the field2 part. (I can't just do it
with two text boxes, at least not in any way I've found, since field1's
width varies considerably, and I can't find a way to make the location
of the left edge of field2's text box vary with it.)
Should I just give up on using Access for this and just use a desktop
publishing program to format this particular report?