Hi.
it doesn't work. :(
Any ideas?
Marco
> Use a number from 0-8 to designate the Font Weight like:
>
[quoted text clipped - 20 lines]
> > regards,
> > Marco
Mark A. Sam - 07 Dec 2007 15:35 GMT
What version of Access? Post your revision.
> Hi.
>
[quoted text clipped - 29 lines]
>> > regards,
>> > Marco
Mark A. Sam - 07 Dec 2007 15:46 GMT
Check the value of [CodigoRubrica] using a Msgbox to make sure that it =
"TOTAL"
If Me.CodigoRubrica = "TOTAL" Then
MsgBox [CodigoRubrica]
Me.SumOfMes1.FontBold = 6
End If
> Hi.
>
[quoted text clipped - 29 lines]
>> > regards,
>> > Marco
Marco - 07 Dec 2007 16:05 GMT
Hello.
i have access 2003 and i try as you said and returns no message.
it only works if I put on current. do you this is because I'm using the
datasheet view?
Marco
> Check the value of [CodigoRubrica] using a Msgbox to make sure that it =
> "TOTAL"
[quoted text clipped - 37 lines]
> >> > regards,
> >> > Marco
Mark A. Sam - 07 Dec 2007 16:53 GMT
I'm sorry, I missed from the first post that you were trying to set the bold
property from the forms Load event. The proper place to do this is the
Current event, however, the Bold property is either on or off for all
records. If you are attempting to display bold on some records and not
others, this won't happen.
> Hello.
>
[quoted text clipped - 46 lines]
>> >> > regards,
>> >> > Marco
BruceM - 07 Dec 2007 15:59 GMT
Since it is a datasheet you can use Conditional Formatting to accomplish
what you need. Click into SumOfMes1 in datasheet view (not design view),
then click Format > Conditional Formatting. Select "Expression is", and in
the box to the right of that selection put:
[CodigoRubrica]="TOTAL"
Select the icon for bold font.
There are some techniques for more complex formatting using code (changing
the row color, for instance) in a continuous form (I'm not sure about
datasheet view, but you can format a continuous form to look like a
datasheet), but it sounds as if Conditional Formatting, which is simpler to
implement, will do what you need.
Note that you would need to use the same technique for a Continuous form.
You can use code as you have done in a Single form, although the Load event
is not a good choice. Even if it works at all it will not alter the result
from record to record; the initial formatting will apply to all records.
Try the Current event. Also, it is best if you give the text box a
different name than the field, if it is not already.
Note also that if you are using code you need to set FontBold to False if it
fails the logical test, or else it will remain bold once it has been
formatted that way:
If Me.CodigoRubrica = "TOTAL" Then
Me.SumOfMes1.FontBold = True
Else
Me.SumOfMes1.FontBold = False
End If
> Hi.
>
[quoted text clipped - 29 lines]
>> > regards,
>> > Marco
Linq Adams - 07 Dec 2007 18:31 GMT
"Click into SumOfMes1 in datasheet view (not design view)"
Bruce: Why do you think this can't be done in Design View?

Signature
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000/2003
BruceM - 07 Dec 2007 20:44 GMT
I was trying to say that the design view doesn't look like the datasheet
view, even when the Default View is Datasheet, and that it can be done in
datasheet view, but I managed to mangle it.
> "Click into SumOfMes1 in datasheet view (not design view)"
>
> Bruce: Why do you think this can't be done in Design View?