-
Solved: How to pass login parameters from a form to a function
Hi,
I'd like to have a login screen, where some login information is added, and then use that information in my function.
For now I've done this:
Before I login I have this:
[vba]
Set LoginForm = New frmLogin
LoginForm.tbxURL = vUrl
LoginForm.tbxDomain = vDomain
LoginForm.tbxProject = vProject
LoginForm.Show
vUser = LoginForm.tbxUser
vUrl = LoginForm.tbxURL
vProject = LoginForm.tbxProject
vPassword = LoginForm.tbxPassword
vDomain = LoginForm.tbxDomain
[/vba]
However, how do I make sure that I get back to my procedureonce I press ok, or exit the procedure completely when I press cancel?
EDIT: If I press the built-in close button my procedure still works, but off course also want action when OK or Cancel is clicked. How do I do this? Exit, close and hide didn't seem to work for me. exit sub also only exits the event, not the sub above it.
Last edited by Marcke; 12-22-2008 at 09:26 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules