S
Stephen Wright
Help Please
I am trying to work out how to change the font colours dependant upon
the value of a field in a continous subform
The underlying table is called tblstock and the fields are ProductCode,
ProductCount & Stocktmp
Each record has a unique lineNo - the stocktmp is updated from a query
totalling the quantity of each product
The fields I want to format are ProductICode & ProductCount
The conditional formating always highlight every row
My attempt at coding this into the onload event of the form
If Me!StockTmp > Me!ProductCount Then
Me!ProductId.ForeColor = 255
Else: Me!ProductId.ForeColor = 0
End If
Again the same result as the conditional format
I would be grateful for any suggestions on how to code this
Many thanks
Paul
I am trying to work out how to change the font colours dependant upon
the value of a field in a continous subform
The underlying table is called tblstock and the fields are ProductCode,
ProductCount & Stocktmp
Each record has a unique lineNo - the stocktmp is updated from a query
totalling the quantity of each product
The fields I want to format are ProductICode & ProductCount
The conditional formating always highlight every row
My attempt at coding this into the onload event of the form
If Me!StockTmp > Me!ProductCount Then
Me!ProductId.ForeColor = 255
Else: Me!ProductId.ForeColor = 0
End If
Again the same result as the conditional format
I would be grateful for any suggestions on how to code this
Many thanks
Paul