Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 3rd, 2006, 07:45 AM
Registered User
 
Join Date: Jan 2006
Location: , , United Kingdom.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing between bold and plain text in a text box

Hi
I'm trying to change between bold and plain text within a single text box. The text box captures various info from the database and then puts these into sections ie:- "New Parts Required:" which I want in bold, and then a list of these new parts which would be in plain text.
Any help would be great.

:D

Reply With Quote
  #2 (permalink)  
Old January 3rd, 2006, 08:26 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I don't think this can be done.

What you can do is to place a label in bold with "New Parts Required:" and then just make it visible when you need it, and populate the text box with plain text.

HTH


mmcdonal
Reply With Quote
  #3 (permalink)  
Old January 3rd, 2006, 10:15 AM
Registered User
 
Join Date: Jan 2006
Location: , , United Kingdom.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I know that this is a way of altering the bold and plain text. It's just that I am never sure if "New Parts Required:" will be a section on the report. If it isn't it isn't included. There are alot of sections like this so don't want a string of IIf statements and a serious amout of nesting of statements.

Have been given advice on using RichText Object and been looking into this...

Any easier options would be great. have included a code snippet to see if this makes the problem clearer to understand.

  If (Len(nam) > 0) Then
      nam = "NEW PARTS REQUIRED: " & nam & "."
  End If
Here I want "NEW PARTS REQUIRED: " to be in bold and the rest of nam to be plain...

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grouping plain text into paragraphs igraham XSLT 4 July 16th, 2007 01:10 PM
getting plain text for .svc file bhavsac Windows Communication Foundation 8 November 9th, 2006 02:27 PM
Changing Text Box Background Color rodmcleay Javascript How-To 9 December 11th, 2003 05:07 AM



All times are GMT -4. The time now is 10:48 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.