Hi,
Iv got a form with various text boxes and cmd buttons on it. Im using it for a stock/inventory tracking purposes. I would like some sort of visual prompt for when a stored item is nearing its best before date or when an item gets x% through its shelf life.
Therefore, i have a text box with the products BBD in it ie. Sep13. I also have a text box with the products total shelf life (ie. 12months). Calculating this is easy, as its simply 'now' date add 12months etc. However i when the item gets eg. 50% of the way through its shelf life i would like the text box backcolour to turn red.
So i would like to put some code behind a cmd, which when clicked this operation is carried out.
Hope that makes sense,
Any suggestions greatly appreciated,
Iv got a form with various text boxes and cmd buttons on it. Im using it for a stock/inventory tracking purposes. I would like some sort of visual prompt for when a stored item is nearing its best before date or when an item gets x% through its shelf life.
Therefore, i have a text box with the products BBD in it ie. Sep13. I also have a text box with the products total shelf life (ie. 12months). Calculating this is easy, as its simply 'now' date add 12months etc. However i when the item gets eg. 50% of the way through its shelf life i would like the text box backcolour to turn red.
So i would like to put some code behind a cmd, which when clicked this operation is carried out.
Hope that makes sense,
Any suggestions greatly appreciated,