Another approach would start with you putting both dates and making them invisible like mmcdonal said, but then leave them be. Put a third visible, but UNbound, textbox (call it, say CommencementDate) on there and in the report's detail section's ON FORMAT event you put this simple one line.
Me.CommencementDate = Nz(Me.[Acutal Commencement Date], Me.[Me.Programmed Commencement Date])
You can also forget the ON FORMAT event code and put
= Nz(Me.[Acutal Commencement Date], Me.[Me.Programmed Commencement Date])
directly into the textbox's controlsource in the report's design view.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|