Hello everyone, this is my first post.
I have a continuous form with several fields displayed, one of which is called 'PackingDate'. What I want to do his highlight the records with the next upcoming packing date.
So far, I've got to the stage where I can highlight those records with the earliest date by adapting this bit of code (http://www.tek-tips.com/faqs.cfm?fid=18 04) and using the Min([PackingDate]) as the reference, but this is not quite right. What I need to do is select the next upcoming PackingDate from this field and store this in the text box, rather than just the minimum date. I'm assuming this will require some sort of loop to select the earliest date until it finds one which is later than (or the same as) the current date.
Could someone help me please?
Thanks
Neil
I have a continuous form with several fields displayed, one of which is called 'PackingDate'. What I want to do his highlight the records with the next upcoming packing date.
So far, I've got to the stage where I can highlight those records with the earliest date by adapting this bit of code (http://www.tek-tips.com/faqs.cfm?fid=18 04) and using the Min([PackingDate]) as the reference, but this is not quite right. What I need to do is select the next upcoming PackingDate from this field and store this in the text box, rather than just the minimum date. I'm assuming this will require some sort of loop to select the earliest date until it finds one which is later than (or the same as) the current date.
Could someone help me please?
Thanks
Neil
Comment