I have created a form to cross refrence part numbers among suppliers. When the manager selects the part they normally order it will show below 7 possible alternate suppliers of an alternate part. I need the text of the lowest price supplier's part to be red.
The subform containing the pricing is based on a flat file and works the way I want it to. I put in a conditional if statement (one here is abreviated)
If Me.MC.Value < Me.HL.Value _
And Me.MC.Value < Me.FS.value Then
Me.mc.ForeColor = vbRed
Else
Me.mc.ForeColor = vbGreen
End If
This works but not when one of the values is null (some always will be). I have tried filling with a fake high number and having it's value white but am getting green where I want red and black for the high number.
I'm using the green just to tell me that the code is doing something, I'll have it black when finished.
Any help would be appreciated, I know this is very unconventional but it is the way the data is. I've already stumped 2 Access programmers that are way better than me.
I'm using Access 2000 but will also need to make a 97 version.
The subform containing the pricing is based on a flat file and works the way I want it to. I put in a conditional if statement (one here is abreviated)
If Me.MC.Value < Me.HL.Value _
And Me.MC.Value < Me.FS.value Then
Me.mc.ForeColor = vbRed
Else
Me.mc.ForeColor = vbGreen
End If
This works but not when one of the values is null (some always will be). I have tried filling with a fake high number and having it's value white but am getting green where I want red and black for the high number.
I'm using the green just to tell me that the code is doing something, I'll have it black when finished.
Any help would be appreciated, I know this is very unconventional but it is the way the data is. I've already stumped 2 Access programmers that are way better than me.
I'm using Access 2000 but will also need to make a 97 version.