Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving Public Variable

Status
Not open for further replies.

schocku

Programmer
Nov 20, 2001
23
US
Hi all, I am having a wierd problem here.
I have declared a public variable in my General Declarations section as
Public gdata_model_name As String
I am not able to access this variable in any form other than the one in which it is declared.
Does anyone know what I am missing here ?

Thanks,
Shiva.
 
Put the Public declaration at a database level module. You have put it in at the form level. This makes it available only within the form itself. By putting it in a module it is available for use throughout the database. Bob Scriver
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top