Thank you Van,
I tried this befor, but it's not works for my for this reason:
I call a Form Calendar wich put a selected date in a textbox. This text box
Nº1 has a date value, wich could be major or minor of anoter date in TextBox
Nº2 . If TextBoxNº1 date is minor that TextBoxNº2 date then TextBoxNº2 Date =
TextBoxNº1 date.
in the code above, the call of event is after opening the Form Caledario,
but the form Calendario execute last, becouse first has to finish actual
event.
I try the same scenario in Delphi 2005 and there OnChange event raise when I
change the textbox value in the code.
********************** cut *****************
Private Sub cmdCalendarioInicio_Click()
Dim StrCalendario As String
DoCmd.OpenForm "Calendario", , , StrCalendario
Forms![Calendario].Origen = Me.txtFechaInicio
Call txtFechaInicio_AfterUpdate
End Sub
********** end cut ************************+