Hi, where did you put your call to self.requery() (the form's requery method) ? If it is in the afterInit() method of the form then the data is queried before the dateTextBox is initialized and the real date is beeing overwritten by the default value of dDateTextBox. If that is the case, put your call to self.requery() in the afterInitAll() method of the form and you'll be fine.
Regards Peter -------- Original-Nachricht -------- > Datum: Tue, 3 Feb 2009 03:21:29 +0200 (EET) > Von: [email protected] > An: [email protected] > Betreff: [dabo-users] DateTextBox\'s default value is today > I have a problem with a Date TextBox. I use a form to create and edit data > from a database, which includes a date. When my application starts, the > bizobj reads from the database and shows the first record. The form > displays the data of that record, except for the date: the date textbox is > by default set to today's date. > > If I move the record pointer, the date changes to the correct date from > the database. The problem only happens when I execute my application. I > tried using dDateTextBox's update() in afterInitAll, but the problem > persisted. I also tried to delete the default value of the date textbox, > in the Class Designer, although it was restored to today's date. What can > I do to solve this? > > Alexander Altanis > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
