>Hi All,
>
>I have a view (v_payheader) that has a datetime field (PH_date).
>
>I would like to use this field as a controlsource for a textbox.
>When a new record is added to the view, it automatically gets the current datetime() (default value from the DBC).
>
>What I don't what, is to display or allow editing of the TIME portion of the field. But I do what the ability to edit the DATE() protion.
>
>
>What can I enter in the Properties of this field in order to allow me
>to do this???
>
>TIA
>Dave
You can unbind the textbox (.Controlsource="") and fill it:
Textbox.Value=ttod(view.phdate)
When you save a record you can
Replace view.phdate With ctot(dtoc(textbox.value)+substr(ttoc(view.phdate),10))
Edward Pikman
Independent Consultant