The control needs to be bound to a Date-type field. And a suggestion -- don't call the field Date, as that is a reserved word. As an alternative to saving the date from a command button, you could make Date() the default value of that field (in the table), so every time you create a new record, the date would automatically be saved to the field.
Main Topics
Browse All Topics





by: capricorn1Posted on 2009-11-01 at 05:29:50ID: 25713638
in click event of the button, you can place the date and time to the control/field like this
private sub cmdButtonName_click()
me.textboxName=Now()
end sub