C
chuckd
I created a Access 2007 add-in with VS2008 C# and I'm trying to debug my
access form that sends text to a textbox to be displayed after I click on a
button.
I can step into 'FillTextButton_Click()' in my C# app that gets called when
I click on the access form button. So I have my button and textbox connected
to Access2007 with the Access onLoad() event. Everything seems to be
connected ok.
But as soon as I finish running through the 'FillTextButton_Click()' I get
a error message saying
"The expression On Click u=you entered as the event property setting
produced the following error: You can't reference a property or method for a
control unless the control has the focus.
*the expression may not result in the name of the macro, the name of a user
defined function or event proc
* there may have been an error evaluating the function, event, macro
This error occurs when an event has failed to run because Microsoft Office
Access cannot evaluate the location of the logic for the event. For example,
if the OnOpen property of a form is set to =[Field], this error occurs
because Access expects a macro or event name to run when the event is fired."
access form that sends text to a textbox to be displayed after I click on a
button.
I can step into 'FillTextButton_Click()' in my C# app that gets called when
I click on the access form button. So I have my button and textbox connected
to Access2007 with the Access onLoad() event. Everything seems to be
connected ok.
But as soon as I finish running through the 'FillTextButton_Click()' I get
a error message saying
"The expression On Click u=you entered as the event property setting
produced the following error: You can't reference a property or method for a
control unless the control has the focus.
*the expression may not result in the name of the macro, the name of a user
defined function or event proc
* there may have been an error evaluating the function, event, macro
This error occurs when an event has failed to run because Microsoft Office
Access cannot evaluate the location of the logic for the event. For example,
if the OnOpen property of a form is set to =[Field], this error occurs
because Access expects a macro or event name to run when the event is fired."