Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing .backcolor on report detail

Status
Not open for further replies.

srmclean

Technical User
Jun 23, 2003
23
0
0
AU

I'm struggling to change the backcolor of fields on my report.

Under Detail_Format I have a condition on the backcolor triggered by the value of a field like so :

If Me.IDDescriptionChange Then
Me.IDDescription.BackColor = vbRed
Else
Me.IDDescription.BackStyle = vbWhite
End If

I get an error when this runs, I'm told that this method or data member not found.

if I change to Me!IDDescription.BackColor then I get Object doesn't support this property or method.

Reading other posts other people seem to be able to do what I want to do but I can't get it to run.

Help?

----------------
Shaun McLean
 
You read your code again.
[tt]
If Me.IDDescriptionChange Then
Me.IDDescription.BackColor = vbRed
Else
Me.IDDescription.BackStyle = vbWhite
End If

[/tt]

________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
Regardless, I can't change BackColor or BackStyle the issue is that I get an error message stating that the Object doesn't support this property or method. Yet other people seem to be able to execute this code on reports.

----------------
Shaun McLean
 
If you are using Access2000 or higher you can utilize Conditional formatting through the Format Menu.

________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top