Error message when trying to use my access add-in with VS2008

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."
 
D

Daryl S

Chuck -

Can you post the code for the FillTextButton_Click event and tell us what
should be returned or changed by your C# code so we can help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top