Hi!
I have a main form with two subforms on it (subform1, subform2).
In maniform you can chose from a combobox employees which updates subform2 with projects that employee has. Subform1 contains projects where employees can chose to add a new project to their list.
All this works fine.
My problem is then I want the possibility to delete a chosen project from subform2 with a commandbutton. I have used the wizard and checked the forum for answers.
The problem is even without code at all just an event I get error.
I have a swedish version but I will try translate the error message:
"The expression On Click you have as value on eventhas caused following error: An error has occured in the communication between Microsoft Access and the objectprogram or ActiveX-control.
*The expression didnt result in a macroname, name on a userdefined funktion or [event].
*An error occurred on running of a function, event or macro."
I have no clue on thats wrong. I have tried to make a macro in the subform2 and it works great. I have event-code in subform1 which work great.
I have a main form with two subforms on it (subform1, subform2).
In maniform you can chose from a combobox employees which updates subform2 with projects that employee has. Subform1 contains projects where employees can chose to add a new project to their list.
All this works fine.
My problem is then I want the possibility to delete a chosen project from subform2 with a commandbutton. I have used the wizard and checked the forum for answers.
The problem is even without code at all just an event I get error.
I have a swedish version but I will try translate the error message:
"The expression On Click you have as value on eventhas caused following error: An error has occured in the communication between Microsoft Access and the objectprogram or ActiveX-control.
*The expression didnt result in a macroname, name on a userdefined funktion or [event].
*An error occurred on running of a function, event or macro."
I have no clue on thats wrong. I have tried to make a macro in the subform2 and it works great. I have event-code in subform1 which work great.