Pass a parameter...

davebhoy

Dave
Local time
Today, 21:20
Joined
Aug 1, 2006
Messages
37
Hi there

When using parameters from one form to the next I normally hide the form and then reference the parameter textboxes in the next form to the hidden form. Is there a better way of doing this as I saw threads here mentioning passing a parameter. How do I do this? Thanks!

Dave
 
There are many ways to do this, I have a tendency to favor setting up and invisible field on the new form, moving the value to track to that field, then closing the old form. Sometimes I use the minimized form and reference to it when the situation deems that is a good approach (like using it in a popup or something when I know they will be going back to the minimized form).
 
What way would you do it if you closed the first form and don't intend opening it again?
 
I would most likely place the value in the new form in an invisible field (if you don't want/need to show it). I open the new form first, usually run a doevents, then push the value.
If the value is going to be used in more than one place, I usually create a global public variable and put it in there for reference instead of moving the value a bunch of times.
 

Users who are viewing this thread

Back
Top Bottom