|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Using OpenArgs to determin which form to use
I am programming in VBA and i have 3 forms.
1) Form 1 - Open Job 2) Form 2 - Add Parts to a job 3) Form 3 - Book engineer to job The user will be able to either go though each form or jump to form 3 form form 1 depending on if a job needs parts or not eg: - Form 1 -> From 2 -> Form 3 Form 1 -> Form 3 In order to user Form 3 to book an engineer it will need to take details from form 1 and form 2. I have managed to get this set up when it was just passing thoguh all the forms, howver now that the user has the option to miss a form how can i use the OpenArgs on the Form_Open command to Form 3 which form was used to open form 3, hope that makes sense!!!! Thanks |
|
#2
|
|||
|
|||
|
I'd just save them in a global variable.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
how do i do that?
|
|
#4
|
|||
|
|||
|
Define a variable in a bas module. Then on the first form, extract the openargs and store them in that variable. Then use the variable data in subsequent forms. Most likely somewhere in your process you need to re-initialize or clean out the previous stored data.
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Using OpenArgs to determin which form to use |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|