Does anyone know how to hide a date field and show a text field in a report. What I am trying to do - If there is not a date in the field, show N/A. Not able to hide the date field in the report.
I'll assume your field on the report is bound to a table field with data type date/time. You can, in design view, place a label box on top of this field with the visible property set to No. Then, let's say on the event OnOpen, place VBA code to text for a blank date field. If it is blank, then set the label to visible (eg. [labelname].visible = true]) and caption set to N/A (eg. [labelname].caption = "N/A". Also set the text box for the date to False (eg. [textboxname].visible = false)
Or instead of a label use a textbox, but you get the idea.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.