I have a text box that is bound to a date value in a table. The field within the table is set to not except null values. The field is used to record the start time of a process. The default value in this field is 1/1/1900 12:00 PM. This indicates that the process has not yet begun. When this is the value within the field for a given record, I would like the text box that displays the start time to the user to display as an empty text box so the user can see that the process has not yet begun. I tried to do an IIF statement
IIf ( [PRBegTime] = #1/1/1900 12:00 PM#, "", [PRBegTime] )
in the Control Source of the text box, but I get #Error in the display when I use this in the text box that I want to check. If I modify this to use the end date field (which is a separate text box on the form), it works just fine.
My question is this: is it possible to have a bound field that displays based on field value, or will I need to have a separate bound text box that is hidden and update that text box based on the value entered into the text box containing the expression that determines whether the value is displayed or not?
I hope this is clear and I appreciate any feedback!
IIf ( [PRBegTime] = #1/1/1900 12:00 PM#, "", [PRBegTime] )
in the Control Source of the text box, but I get #Error in the display when I use this in the text box that I want to check. If I modify this to use the end date field (which is a separate text box on the form), it works just fine.
My question is this: is it possible to have a bound field that displays based on field value, or will I need to have a separate bound text box that is hidden and update that text box based on the value entered into the text box containing the expression that determines whether the value is displayed or not?
I hope this is clear and I appreciate any feedback!