by pachecf on Fri Oct 09, 2009 6:38 pm
What you probably want to do is to add a public variable.
1. add a module to your project
2. declare a Public variable
Public retStudentName as string
3. Store the value of the student input to that variable and you can use it anywhere in your project.
How to use:
retStudentName = inmputbox(“Student Name”)
Textbox1 = retStudentName
Msgbox (retStudentName)
lblStudentName.caption = retStudentName
anything = retStudentName
Even form.caption = “Application Name: “ & retStudentName
The best part is that this variable will hold the name of the student and it can be accessed by any form, subroutine, etc. in your project.
Note: I van't used VB6 for a long time. But if it's not Public try Global declaration.