Window Prompt for Vaue

crhodus

Registered User.
Local time
Today, 09:18
Joined
Mar 16, 2001
Messages
257
I haven't worked with modules before, but I think that they can help solve my problem.

How can I create a module that when the program is started, the module displays a window that prompts you for a user name? I would like to use the value that is entered into this window as a global value.

My thinking is that if I can get someone's name stored in a variable, let's call it USERNAME, I can have VB code in different forms that will assign a field on the form the value of USERNAME, if certain conditions in the VB code are met.


Thanks!
 
Just dim it as a globel variable in a module and it will be available to all forms
 
I thought I was clear in my first reply, but if you've never worked with modules, I can see how you were confused. If you need any more specific help on the subject you can email me.
 

Users who are viewing this thread

Back
Top Bottom