?
Solved

Usernames in MS Access forms

Posted on 2009-12-18
2
Medium Priority
?
183 Views
Last Modified: 2012-05-08
Hello,

 I have a making an access database which has a login form. I would like to pass the login name to other forms so that it maybe submitted into when the user completes the forms. Any information would be greatly appreciated.
0
Comment
Question by:Silverthorne
2 Comments
 
LVL 6

Accepted Solution

by:
CaptainGiblets earned 500 total points
ID: 26082111
create a public string in a module and save the username to that module and then you reference it the same as any other without having to do dim sqlstr as string first.

Either that or when you open the form pass the txtusername.value to the new form with a similar name that is hidden from users so you can reference it whenever you want.

so on the openform of the next form do a me.txtusername.value = forms!loginform!txtusername.value
0
 

Author Comment

by:Silverthorne
ID: 26104692
Thanks for the help. Since I am new to Access, can you please provide a sample?
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question