Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Open Different Form by Username
Thomas Corbett 
     
6 years ago
I would like to open a different menu form based on the user who logs in. I have the Username stored in a field. How can I determine which form loads when they click a LOGON button?
Richard Rost  @Reply  
          
6 years ago
Hi Thomas. Assuming you've logged them on using something similar to the technique I show in my Security Seminar, all you need is a Select Case or an If Then block in your logon code to direct the user to the correct menu form. Something like this would work:

If Username = "Richard" then
  DoCmd.OpenForm "AdminMenuF"
ElseIf Username = "Sue" or Username = "Pete" then
  DoCmd.OpenForm "SalesMenuF"
Else
  DoCmd.OpenForm "MainMenuF"
End If
Ray White  @Reply  
      
6 years ago
Yes the Security Seminar is a great Seminar, I think everybody should watch that one.
I have been using everything I learned in it in my program I build for over 5000 customers and it has been working great. Thank you Richard. I have been using Access for many years but the learning NEVER stops. I always go back and re-watch the training videos and always learn something new that I can use in my programs that I build.
The sky is the limit when it comes to developing great programs...
Keep up the great work Richard. :)
Rick Rost  @Reply  
       
6 years ago
Thanks Ray. Glad you like it.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 6:40:49 PM. PLT: 1s