E
Emmweb
I'm quite certain this is an extremely simple question - I'll probably kick
myself when I hear the answer.
I have a list box (TimeEntry) of time values in 30 minute increments. (7:00
AM, 7:30 AM...)
I then have a text box (StartTime) bound to a field.
When a time is selected in the list box, I'd like that time's value
automatically assigned to the StartTime textbox and field. When I run this
code under the Click event of TimeEntry, I get a message that the Validation
Rule or BeforeUpdate properties of the control won't allow the assignment.
Dim temptime As String
temptime = Format(TimeEntry.Value, "Long time")
StartTime.SetFocus
StartTime.Text = temptime
I have looked at both controls involved and there is no Validation Rule or
BeforeUpdate event for either one. I've also tried changing the data types to
string and date both, and tried various formats. Nothing's working.
On another strange note, if you click to Debug the problem and then exit the
debugger, the value is assigned as I'd want it to be to the text box and
field.
Thanks in advance!
myself when I hear the answer.
I have a list box (TimeEntry) of time values in 30 minute increments. (7:00
AM, 7:30 AM...)
I then have a text box (StartTime) bound to a field.
When a time is selected in the list box, I'd like that time's value
automatically assigned to the StartTime textbox and field. When I run this
code under the Click event of TimeEntry, I get a message that the Validation
Rule or BeforeUpdate properties of the control won't allow the assignment.
Dim temptime As String
temptime = Format(TimeEntry.Value, "Long time")
StartTime.SetFocus
StartTime.Text = temptime
I have looked at both controls involved and there is no Validation Rule or
BeforeUpdate event for either one. I've also tried changing the data types to
string and date both, and tried various formats. Nothing's working.
On another strange note, if you click to Debug the problem and then exit the
debugger, the value is assigned as I'd want it to be to the text box and
field.
Thanks in advance!