A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Bold a control on a report



 
 
Thread Tools Display Modes
  #1  
Old May 9th, 2008, 11:01 AM posted to microsoft.public.access.forms
JohnB
external usenet poster
 
Posts: 185
Default Bold a control on a report

I have a Form with 30 or so combo boxes. A button prints the form to a
report. When I make changes to the Form's data I Bold the changes on the
Form. How do I pass any combo boxes that I've formatted to Bold to the
report so they are printed in Bold on the report?

TIA

john b
  #2  
Old May 9th, 2008, 02:37 PM posted to microsoft.public.access.forms
Mr B[_2_]
external usenet poster
 
Posts: 129
Default Bold a control on a report

johnb,

In the OnFormat event of the section of your report where the control you
want to be bold try code like thid:

If SomeCondition = true then
Me.ControlName.FontWeight = 700
else

--
HTH

Mr B
askdoctoraccess dot com


"johnb" wrote:

I have a Form with 30 or so combo boxes. A button prints the form to a
report. When I make changes to the Form's data I Bold the changes on the
Form. How do I pass any combo boxes that I've formatted to Bold to the
report so they are printed in Bold on the report?

TIA

john b

  #3  
Old May 9th, 2008, 02:41 PM posted to microsoft.public.access.forms
Mr B[_2_]
external usenet poster
 
Posts: 129
Default Bold a control on a report

johnb,

In the Format event of the section of your report where the control is that
you want to be bold try code like this:

If SomeCondition = true then
Me.ValueAcre.FontWeight = 700
Else
Me.ValueAcre.FontWeight = 400
EndIf

Supply your own criteria and use the name of your control names.

--
HTH

Mr B
askdoctoraccess dot com


"johnb" wrote:

I have a Form with 30 or so combo boxes. A button prints the form to a
report. When I make changes to the Form's data I Bold the changes on the
Form. How do I pass any combo boxes that I've formatted to Bold to the
report so they are printed in Bold on the report?

TIA

john b

  #4  
Old May 9th, 2008, 03:18 PM posted to microsoft.public.access.forms
JohnB
external usenet poster
 
Posts: 185
Default Bold a control on a report

Hi Mr B

Thank you for your missive. I shall try out your solution

john b
"Mr B" wrote:

johnb,

In the Format event of the section of your report where the control is that
you want to be bold try code like this:

If SomeCondition = true then
Me.ValueAcre.FontWeight = 700
Else
Me.ValueAcre.FontWeight = 400
EndIf

Supply your own criteria and use the name of your control names.

--
HTH

Mr B
askdoctoraccess dot com


"johnb" wrote:

I have a Form with 30 or so combo boxes. A button prints the form to a
report. When I make changes to the Form's data I Bold the changes on the
Form. How do I pass any combo boxes that I've formatted to Bold to the
report so they are printed in Bold on the report?

TIA

john b

  #5  
Old May 9th, 2008, 03:23 PM posted to microsoft.public.access.forms
Mr B[_2_]
external usenet poster
 
Posts: 129
Default Bold a control on a report

johnb,

Sorry for the double post, I accidently hit the wrong key and sent the first
post before I had completed writing all I wanted to say.

Good Luck with your project.

Mr B
askdoctoraccess dot com


"johnb" wrote:

Hi Mr B

Thank you for your missive. I shall try out your solution

john b
"Mr B" wrote:

johnb,

In the Format event of the section of your report where the control is that
you want to be bold try code like this:

If SomeCondition = true then
Me.ValueAcre.FontWeight = 700
Else
Me.ValueAcre.FontWeight = 400
EndIf

Supply your own criteria and use the name of your control names.

--
HTH

Mr B
askdoctoraccess dot com


"johnb" wrote:

I have a Form with 30 or so combo boxes. A button prints the form to a
report. When I make changes to the Form's data I Bold the changes on the
Form. How do I pass any combo boxes that I've formatted to Bold to the
report so they are printed in Bold on the report?

TIA

john b

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:56 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.