When filling in date fields it is handy to have a calendar style look-up field. Unfortunately a "tdbCalendarlookUpBox" do not exist (unless it is a 3[sup]rd[/sup] party component), so we have to combine a TdateTimePicker component with a TdataSource
Answer:
Necessary:
1) Of course a database with a date field
2) a Form
3) a TdateTimepicker Component
4) a Tquery or Ttable
5) a Tdatasource componenent
6) optional a TdbNavigator
In my case I have a Date field named ShiftDate in my query
Events to be programmed
onDataChange, onUpdateData (datasource)
onClick (DateTimepicker)
This syncronizes the DateTimePicker with the database
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.