H
Hank
I have an attendance form with a list of employees, a check box (checked if
presemt) and a comment text box. A command button on the form appends
records to an work attendance table..
I would like to have the check box and comment text box cleared when the
form is opened OR when the command button is clicked.
I can use DoCmd.GoToRecord,,acnewRecord - but this clears everything on the
form. In the OnOpen event I have tried:
Me.Comments.value=""
this give me a run time error stating "You can't assign a value to this
object". Other code varation I have tried in the OnOpen event are:
Comments=Null - same runtime error
I have also tried this code in the OnLoad event. I do not get an error- but
nothing is cleared on the form.
Is is possible to clear PART of a form? How?
Thanks
Hank
presemt) and a comment text box. A command button on the form appends
records to an work attendance table..
I would like to have the check box and comment text box cleared when the
form is opened OR when the command button is clicked.
I can use DoCmd.GoToRecord,,acnewRecord - but this clears everything on the
form. In the OnOpen event I have tried:
Me.Comments.value=""
this give me a run time error stating "You can't assign a value to this
object". Other code varation I have tried in the OnOpen event are:
Comments=Null - same runtime error
I have also tried this code in the OnLoad event. I do not get an error- but
nothing is cleared on the form.
Is is possible to clear PART of a form? How?
Thanks
Hank