p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Access VBA (http://p2p.wrox.com/forumdisplay.php?f=80)
-   -   Passing variable to a public variable (http://p2p.wrox.com/showthread.php?t=25849)

Hudson40 February 21st, 2005 11:46 AM

Passing variable to a public variable
 
Hi

I am passing a value from a list box into a Public variable. I was under the assumption that you could access a public variable from anywhere within your project. However when I try and set the variable value as an object on a form I keep getting a name? message.

Any ideas would be greatly appreciated as this is driving me nuts.

Cheers
Tony

Bob Bedell February 22nd, 2005 06:47 PM

Hi Tony,

Post a snippet or two of your code and someone may be able to see your problem a bit more clearly. What type of module is your public variable stored in?

Bob


Hudson40 February 25th, 2005 06:23 AM

Actaully its alright now Bob, I've ditched the idea and used a ifferent one.

Thanks anyway

Cheers
Tony


All times are GMT -4. The time now is 12:47 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.