G
Guest
I have a data entry form. I want to assign a date to the Day field in a table
when user goes to the next row thru hidden txtDate text box.
But, I'm getting the error: Run-Time error -21437352567 (80020009) You can't
assign a value to this object
For all other objects (except the date one) I'm using the before update
event as I need to assign values there if something is entered into the Form
and everything is working well.
Here is the code for the Date (Day field):
On Load:
Me.txtDate.ControlSource = "Day" ' the table field
OnCurrent:
Dim dtDate As Date
dtDate = Forms!frmInterview!txtSelectDate
Me.txtDate.Requery
Me.txtDate = dtDate ' here is the error
Please, advise what's wrong there.
Thanks
when user goes to the next row thru hidden txtDate text box.
But, I'm getting the error: Run-Time error -21437352567 (80020009) You can't
assign a value to this object
For all other objects (except the date one) I'm using the before update
event as I need to assign values there if something is entered into the Form
and everything is working well.
Here is the code for the Date (Day field):
On Load:
Me.txtDate.ControlSource = "Day" ' the table field
OnCurrent:
Dim dtDate As Date
dtDate = Forms!frmInterview!txtSelectDate
Me.txtDate.Requery
Me.txtDate = dtDate ' here is the error
Please, advise what's wrong there.
Thanks