I am recording the employee’s date_of_birth, the year_employed and the current_DateTime the data is recorded (the actual date and time the user clicks save), since the company is automating its records.
There is no datepicker or monthcalendar control in DataWindow object which would have made it easier for the user to pick the dates.
- What is the most efficient way as opposed to the user writing the
dateson a column? - What is the code to enter the
current_DateTimein the DataWindow to the database?
1. Datetime selection
Not exactly. You can add a drop-down calendar to help the selection of a date :
The field will have a drop-down arrow that will show you a calendar to pick a date.
You can also customize the Mask to suit your display needs.
2. Current time historization
You could define your
current_DateTimecolumn to benot nullwhile setting a default value in the table toNow(). Ignore the field completely in PB. Thus when a new record will be added from pb it will get the current time defined by the database.