var or string value goes into another form

Thread Solved

Join Date: Jul 2007
Posts: 24
Reputation: dmotah is an unknown quantity at this point 
Solved Threads: 0
dmotah dmotah is offline Offline
Newbie Poster

var or string value goes into another form

 
0
  #1
Aug 2nd, 2007
i use this in a form
dim alt_date as boolean
....code....
alt_date=false


end
now i want this alt_date value to be saved and go on to the next form, but by default, it always remains false, even if i change it to true in the previous one.
how ken i kal the alt_date actual value in another form, and change the state to true to false.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: var or string value goes into another form

 
0
  #2
Aug 2nd, 2007
Hi,


add a .bas Module to ur Project and Declare this in module:

Public alt_date as Boolean.

Remove all the other Declarations of alt_date in the Forms, Now u have a Public Variable that u can use across all the Forms in ur project.

REgards
Veena
Last edited by QVeen72; Aug 2nd, 2007 at 3:39 am.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC