Format one field in bold in a trim expression

  • Thread starter Thread starter jean.ulrich
  • Start date Start date
J

jean.ulrich

Hi

I have a trim expression

Trim([Name] & ", " & [FirstName] & ", " & "born on the " & [BornDate] &
" in the city of " & [CityName])

Is it possible in this expression to apply bold format only for
[BornDate] ?

thanks
 
No. Formats such as font, italic, bolding, etc. are an all or nothing option
for textboxes, unless you are using a memo data type with a Rich Text ActiveX
control.

Two rich text controls worthy of mention include:
http://www.lebans.com/richtext.htm (Free) and

http://www.fmsinc.com/products/memo/index.html (Not free).

Trim([Name] &

Please note that "Name" is a reserved word. You should avoid using reserved
words for anything that you assign a name to in Access:

Reserved Words in Microsoft Access
http://support.microsoft.com/?id=286335

List of reserved words in Jet 4.0
http://support.microsoft.com/?id=321266



Tom Wickerath
Microsoft Access MVP

http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

Hi

I have a trim expression

Trim([Name] & ", " & [FirstName] & ", " & "born on the " & [BornDate] &
" in the city of " & [CityName])

Is it possible in this expression to apply bold format only for
[BornDate] ?

thanks
 
Tom, do you think we should start mentioning that Access 2007 will be able
to do this?

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

Tom Wickerath said:
No. Formats such as font, italic, bolding, etc. are an all or nothing
option
for textboxes, unless you are using a memo data type with a Rich Text
ActiveX
control.

Two rich text controls worthy of mention include:
http://www.lebans.com/richtext.htm (Free) and

http://www.fmsinc.com/products/memo/index.html (Not free).

Trim([Name] &

Please note that "Name" is a reserved word. You should avoid using
reserved
words for anything that you assign a name to in Access:

Reserved Words in Microsoft Access
http://support.microsoft.com/?id=286335

List of reserved words in Jet 4.0
http://support.microsoft.com/?id=321266



Tom Wickerath
Microsoft Access MVP

http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

Hi

I have a trim expression

Trim([Name] & ", " & [FirstName] & ", " & "born on the " & [BornDate] &
" in the city of " & [CityName])

Is it possible in this expression to apply bold format only for
[BornDate] ?

thanks
 
Rats. Somehow the two links I posted for the Rich Text included an extra
white space. These new corrected links should work:

http://www.lebans.com/richtext.htm

http://www.fmsinc.com/products/memo/index.html


Tom Wickerath
Microsoft Access MVP

http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

Tom Wickerath said:
No. Formats such as font, italic, bolding, etc. are an all or nothing option
for textboxes, unless you are using a memo data type with a Rich Text ActiveX
control.

Two rich text controls worthy of mention include:
http://www.lebans.com/richtext.htm (Free) and

http://www.fmsinc.com/products/memo/index.html (Not free).

Trim([Name] &

Please note that "Name" is a reserved word. You should avoid using reserved
words for anything that you assign a name to in Access:

Reserved Words in Microsoft Access
http://support.microsoft.com/?id=286335

List of reserved words in Jet 4.0
http://support.microsoft.com/?id=321266



Tom Wickerath
Microsoft Access MVP

http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

Hi

I have a trim expression

Trim([Name] & ", " & [FirstName] & ", " & "born on the " & [BornDate] &
" in the city of " & [CityName])

Is it possible in this expression to apply bold format only for
[BornDate] ?

thanks
 
Well, I doubt the original poster has Access 2007 yet, but in the new
version, it will be possible to set the Text Format property of the text box
to Rich Text, and set the Control Source to:

=Trim([Name] & ", " & [FirstName] & ", " & "born on the <b>" &
[BornDate] & "</b> in the city of " & [CityName])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top