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
 
Back
Top