Public Variables and Reference Error

  • Thread starter Thread starter ElenaR
  • Start date Start date
E

ElenaR

I have three variables which I have made Public. The
other forms in my project are still not able to read these
variables.

For Example, in a form named EndItem there is a variable
which I declare as: Public intItemIdentifier As Integer

In another form I have -
Textbox1.Text = EndItem.intItemIdentifier

The error I get is:
Reference to a non-shared memeber requres an object
reference.

Am I missing something?
 
Hi Elena,

It's best to keep related queies together.

What you are missing is the answer in the thread with your original
question! ;-)

Regards,
Fergus
 

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

Back
Top