I have two fields in my report…one called A and the other called ReqA. I am wanting to change the format of the A field (Font Color, Background Color, and Font Bold properties) if certain conditions are true. This is the code that I have tried and it didn’t work :-(
Select Case Me.A
Case IsNull (A) And IsNull (ReqA) ‘ There are none required and none available
Me.A.ForeColor = vbBlack
Me.A.BackColor = vbYellow
Me.A.FontBold = False
Case Me.A < Me.ReqA ‘ There are more required than available
Me.A.ForeColor = vbWhite
Me.A.BackColor = vbRed
Me.A.FontBold = True
Case me.A = me.ReqA ‘ There are just enough to start up
Me.a.forecolor = vbblue
Me.a.forecolor = vbred
Me.fontbold = true
End Select
What am I doing wrong?
Thanks in advance for your help.
Ellie
**Using Access 97 at work**
**Using Access 2000 at home**
lena.wood@starband.net
Select Case Me.A
Case IsNull (A) And IsNull (ReqA) ‘ There are none required and none available
Me.A.ForeColor = vbBlack
Me.A.BackColor = vbYellow
Me.A.FontBold = False
Case Me.A < Me.ReqA ‘ There are more required than available
Me.A.ForeColor = vbWhite
Me.A.BackColor = vbRed
Me.A.FontBold = True
Case me.A = me.ReqA ‘ There are just enough to start up
Me.a.forecolor = vbblue
Me.a.forecolor = vbred
Me.fontbold = true
End Select
What am I doing wrong?
Thanks in advance for your help.
Ellie
**Using Access 97 at work**
**Using Access 2000 at home**
lena.wood@starband.net