Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 21st, 2005, 11:46 AM
Authorized User
 
Join Date: Dec 2004
Location: Belfast, Antrim, United Kingdom.
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
__________________
Cheers
Tony
Reply With Quote
  #2 (permalink)  
Old February 22nd, 2005, 06:47 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

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

Reply With Quote
  #3 (permalink)  
Old February 25th, 2005, 06:23 AM
Authorized User
 
Join Date: Dec 2004
Location: Belfast, Antrim, United Kingdom.
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Thanks anyway

Cheers
Tony
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use a run time variable as public Subuana Beginning VB 6 2 May 1st, 2006 03:27 PM
passing variable tbekarov ASP.NET 2.0 Professional 7 February 1st, 2006 04:16 PM
difference b/w shared and public variable lgeetha VS.NET 2002/2003 1 March 4th, 2005 08:24 AM
passing variable gumgak Classic ASP Databases 13 June 29th, 2003 09:13 PM
How to reference Public Variable in Code Gino Liu Access VBA 2 June 18th, 2003 01:42 PM



All times are GMT -4. The time now is 11:36 PM.


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