p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Office > Access and Access VBA > Access VBA
I forgot my password Register Now
Register | FAQ | Members List | Calendar | 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 24th, 2003, 01:47 PM
Authorized User
Points: 121, Level: 2
Points: 121, Level: 2 Points: 121, Level: 2 Points: 121, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Ft. Lauderdale, Florida, USA.
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing variables

Hello everyone. I have some confusion on passing variables. I need to store variables from a form and then retrieve them later. What I have is three form that a user fills out and presses a next button to go to the next one. So the idea is to have the values from the text boxes stored and when the final form is finished retrieve all the variables for an SQL command.

Any ideas will be greatly appreciated.

Thanks,
Jesse
__________________
Thanks,
Jesse
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old October 24th, 2003, 01:59 PM
sal sal is offline
Friend of Wrox
Points: 1,413, Level: 15
Points: 1,413, Level: 15 Points: 1,413, Level: 15 Points: 1,413, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2003
Location: Clarksville, TN, USA.
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why don't you just use a tab control to put all the info instead of jumping from one form to another?

Sal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old October 24th, 2003, 02:08 PM
Authorized User
Points: 121, Level: 2
Points: 121, Level: 2 Points: 121, Level: 2 Points: 121, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Ft. Lauderdale, Florida, USA.
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That is how I had originally built it but it was requested that the fields be seperated in groups in seperate forms and to guide the users navigation with a next button. All of the fields from the seperate form need to be added to a single table at the final step.

Quote:
quote:Originally posted by sal
 Why don't you just use a tab control to put all the info instead of jumping from one form to another?

Sal
Thanks,
Jesse
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old October 24th, 2003, 02:29 PM
sal sal is offline
Friend of Wrox
Points: 1,413, Level: 15
Points: 1,413, Level: 15 Points: 1,413, Level: 15 Points: 1,413, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2003
Location: Clarksville, TN, USA.
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can either create global variables in a module (I do not like those) or open a hidden form and set values on it as you go along.




Sal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old October 24th, 2003, 02:45 PM
Authorized User
Points: 121, Level: 2
Points: 121, Level: 2 Points: 121, Level: 2 Points: 121, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Ft. Lauderdale, Florida, USA.
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, I'll try that.

Thanks,
Jesse
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing Variables silve1999 Pro Java 1 June 15th, 2006 01:54 PM
Passing Variables CMOS Classic ASP Basics 2 January 22nd, 2006 07:38 PM
Passing variables karlirvin PHP How-To 4 December 2nd, 2005 08:02 PM
passing variables. ashokparchuri ASP.NET 1.1 4 March 18th, 2005 05:36 AM
Passing variables acko ASP.NET 1.x and 2.0 Application Design 1 December 23rd, 2003 09:40 AM



All times are GMT -4. The time now is 08:27 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc