Bold part of field... in Access 2007

S

SF

Hi,

I have a reports consist of some unbount fields that combined text and field
togather such as ="I want to cancel my reservation # "& [Reservation ID]& "
dated "& [ResvDate]

Is there a way to bold only the [Reservation ID] with Access 2007?

SF
 
A

Allen Browne

Yes. Open the report in design view.
Right-click, the text box, and choose Properties.
Set the Text Format property to: Rich Text.

Now set the ControlSource to:
="I want to cancel my reservation # <b>"& [Reservation ID]& " </b> &gt;
dated " & [ResvDate]

A2007 uses the HTML codes for bolding.
I assume it will handle the greater than character okay.

This functionality is quite useful. I recently put together an example
showing how to highlight where the search text was found in a field, using a
similar approach:
http://allenbrowne.com/AppSearchHighlight.html
 
S

SF

Thank you very much for your prompt response.

SF

Allen Browne said:
Yes. Open the report in design view.
Right-click, the text box, and choose Properties.
Set the Text Format property to: Rich Text.

Now set the ControlSource to:
="I want to cancel my reservation # <b>"& [Reservation ID]& " </b> &gt;
dated " & [ResvDate]

A2007 uses the HTML codes for bolding.
I assume it will handle the greater than character okay.

This functionality is quite useful. I recently put together an example
showing how to highlight where the search text was found in a field, using
a similar approach:
http://allenbrowne.com/AppSearchHighlight.html

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

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

SF said:
Hi,

I have a reports consist of some unbount fields that combined text and
field togather such as ="I want to cancel my reservation # "&
[Reservation ID]& " dated "& [ResvDate]

Is there a way to bold only the [Reservation ID] with Access 2007?
 

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

Top