I can't seem to find any MS access message boards on the web so I hope someone can help me out with this. It seems that I can't put any sort of vba code on a subform. If i create a form, then add a subform, then add a cmdbutton to the subform and use even the auto-generated code to run notepad, i get the same error no matter what i do. I've found that the process doesn't even reach the code--it stops and gives me the error before Ive even gotten to the first line. This is the error msg i get:
The expression onclick you entered as the event property setting produced the following error: A problem occurred while microsoft access was communicating with the OLE server or activeX control
*the expression may not result in the name of a macro, the name of a user-defined function, or [event procedure].
*There may have been an error evaluating the function, event, or macro.
I suppose I could solve this problem by placing the cmdbutton on the parent form, but then I don't know the vba code to access the fields within the subform. (I want to change a apply a filter to the subform via optiongroups). Any ideas here??
The expression onclick you entered as the event property setting produced the following error: A problem occurred while microsoft access was communicating with the OLE server or activeX control
*the expression may not result in the name of a macro, the name of a user-defined function, or [event procedure].
*There may have been an error evaluating the function, event, or macro.
I suppose I could solve this problem by placing the cmdbutton on the parent form, but then I don't know the vba code to access the fields within the subform. (I want to change a apply a filter to the subform via optiongroups). Any ideas here??