Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 3rd, 2006, 07:45 AM
Registered User
 
Join Date: Jan 2006
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

 
Old January 3rd, 2006, 08:26 AM
Friend of Wrox
 
Join Date: Mar 2004
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
 
Old January 3rd, 2006, 10:15 AM
Registered User
 
Join Date: Jan 2006
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...






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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.