By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,865 Members | 1,365 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,865 IT Pros & Developers. It's quick & easy.

Fomatting toolbar

P: n/a
Trying to add the formatting toolbar to a memo field in '97. I am able to
add the toolbar from the view\toolbar\custom menu but as soon as I open
the database it becomes grayed out. Hopefully there is a fairly simple
way to overcome this but haven't been able to find it myself. Any
suggestions ???
Thanks
dc
Oct 12 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
ARC
Do you mean that the memo field is an active x rich text control? If the
field is just set to memo in the table, it won't support the formatting
toolbar. For the rich text custom control, you pretty much have to put your
own buttons in there, such as a button for bold, underline, text alignment,
a font selection, etc., and have your own code for all buttons. For example,
for the microsoft rich text control, the code behind the bold button would
be something like:

Me!txt1.SelBold = Not Me!txt1.SelBold

If this is what you were after, and you need more sample code for other
formatting buttons, let me know.

Andy
"doncee" <no***********@nospamswbell.wantedwrote in message
news:Xn*********************************@216.196.9 7.131...
Trying to add the formatting toolbar to a memo field in '97. I am able to
add the toolbar from the view\toolbar\custom menu but as soon as I open
the database it becomes grayed out. Hopefully there is a fairly simple
way to overcome this but haven't been able to find it myself. Any
suggestions ???
Thanks
dc
Oct 13 '08 #2

P: n/a
Thank you for your response. Yes, this is just a normal run of the mill
memo field. I was afraid that it did not support formatting & your
reply confirmed that. If you wouldn't mind posting a few more sample
codes for rich text I would appreciate it. Once again, thanks for the
clarification & reply
dc

ARC" <PC*****@PCESoft.invalidwrote in
news:uj*****************@nlpi067.nbdc.sbc.com:
Do you mean that the memo field is an active x rich text control? If
the field is just set to memo in the table, it won't support the
formatting toolbar. For the rich text custom control, you pretty much
have to put your own buttons in there, such as a button for bold,
underline, text alignment, a font selection, etc., and have your own
code for all buttons. For example, for the microsoft rich text
control, the code behind the bold button would be something like:

Me!txt1.SelBold = Not Me!txt1.SelBold

If this is what you were after, and you need more sample code for
other formatting buttons, let me know.

Andy
"doncee" <no***********@nospamswbell.wantedwrote in message
news:Xn*********************************@216.196.9 7.131...
>Trying to add the formatting toolbar to a memo field in '97. I am
able to add the toolbar from the view\toolbar\custom menu but as
soon
>as I open the database it becomes grayed out. Hopefully there is a
fairly simple way to overcome this but haven't been able to find it
myself. Any suggestions ???
Thanks
dc

Oct 13 '08 #3

P: n/a
ARC
You're welcome.

'Italics:
Me!txt1.SelItalic = Not Me!txt1.SelItalic

'center alignment
Me!txt1.SelAlignment = rtfCenter 'left= rtfLeft, right= rtfRight

'underline
Me!txt1.SelUnderline = Not Me!txt1.SelUnderline

'font
CommonDialog1.Flags = cdlCFBoth
CommonDialog1.ShowFont
With Me!txt1
.SelFontName = CommonDialog1.FontName
.SelFontSize = CommonDialog1.FontSize
.SelBold = CommonDialog1.FontBold
.SelItalic = CommonDialog1.FontItalic
.SelStrikeThru = CommonDialog1.FontStrikeThru
.SelUnderline = CommonDialog1.FontUnderline
End With
Me!txt1.SetFocus
Hope this helps,

"doncee" <no***********@nospamswbell.wantedwrote in message
news:Xn********************************@216.196.97 .131...
Thank you for your response. Yes, this is just a normal run of the mill
memo field. I was afraid that it did not support formatting & your
reply confirmed that. If you wouldn't mind posting a few more sample
codes for rich text I would appreciate it. Once again, thanks for the
clarification & reply
dc

ARC" <PC*****@PCESoft.invalidwrote in
news:uj*****************@nlpi067.nbdc.sbc.com:
>Do you mean that the memo field is an active x rich text control? If
the field is just set to memo in the table, it won't support the
formatting toolbar. For the rich text custom control, you pretty much
have to put your own buttons in there, such as a button for bold,
underline, text alignment, a font selection, etc., and have your own
code for all buttons. For example, for the microsoft rich text
control, the code behind the bold button would be something like:

Me!txt1.SelBold = Not Me!txt1.SelBold

If this is what you were after, and you need more sample code for
other formatting buttons, let me know.

Andy
"doncee" <no***********@nospamswbell.wantedwrote in message
news:Xn*********************************@216.196. 97.131...
>>Trying to add the formatting toolbar to a memo field in '97. I am
able to add the toolbar from the view\toolbar\custom menu but as
soon
>>as I open the database it becomes grayed out. Hopefully there is a
fairly simple way to overcome this but haven't been able to find it
myself. Any suggestions ???
Thanks
dc

Oct 13 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.