Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Seminars > Security >
Back to Access Security Seminar    Comments List
Getting an error Dlookup Upload Images   Link   Email  
Dan Jackson              
2 years ago
Hi Guys,

I'm following along on the security seminar and i'm up to video 05. Group Permissions. In this one, Rick is using Dlookup to reference a user group and return a value based on what group a user is in.

This is the line of code and the error received:



The UserXGroupT:



The Text_UserID Field on the Form itself:



Many Thanks, i'm sure its something simple!
Kevin Robertson            
2 years ago
Does Text_UserID have a value?
Does it work with a Button instead of the After Update?
Dan Jackson              
2 years ago
Thanks Kevin. The button works fine, its obviously the timing of the event. The Previous screen is a simple login screen. Upon logging in, the login button opens the main page and, using dlookup, writes the UserID to Text_UserID.

The code mentioned is then supposed to use that user ID and reference the Group ID to alter the visibility of some objects on the page. I initially tried it on Form Load but obviously, it wont have had a chance to write the value yet.

I then tried after update but still doesn't work. I'm going to try a few things and if i get stuck, i'll report back. Best way to learn.

Thanks mate
Dan Jackson              
2 years ago
All Sorted, cheers! I applied the code on the Previous form and made the permission adjustments between opening the main form and closing the login form. Perfect!

Thanks again

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

 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/15/2024 8:11:43 PM. PLT: 1s