I have a field called dtDate in the table, when there's no dates in the field at all, it shows a blank on the form. I'd rather to assign a value to it, as below, but it doesn't work. Can you help me with this?
IIf([dtDate] is null,Now(),[dtDate])
Is this going in the control source of a text box? If so don't forget that you need an = in front of the expression.
One other observation. If you want the user to be able to put a value in this field, you will need to save it programmatically since the control source will not be bound to anything. Even if you want to just store the current date you will need to program it.
hth
Jeff Bridgham
Purdue University
Graduate School
Data Analyst
you say you are trying to display something from a table in a form, are you trying to put this formula on the control on the form? you'll need to do it in a query and use that as the record source of the form in order to display the correct information.
Leslie
Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual
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.