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 
Active Directory Data
Michael Glaesmann 

4 years ago
I am responsible for managing users in Active Directory.  I built an Access DB to do all my tasks. To update my table I use a linked spreadsheet.  I update my linked spreadsheet by using a powershell command.  Every time I pull data from AD it pulls the lastlogondate as date and time.  I have to report the days since the last log on.  The data as date and time leaves me with a day with decimals due to the date/time data.  I can change the date/time to date in the linked spreadsheet, but the date/time attribute is hidden.  When Access calculates the days since last logon, I get a decimal result.  The only way I can resolve this is to copy all the dates from the linked spreadsheet into a text file, then recopy the dates into a new column in the linked spreadsheet.  Is there a better way to pull data from AD into Access?
Kevin Robertson  @Reply  
           
4 years ago
Are you calculating the number of days in a query?
Can't you just chop off the decimal?

DaySinceLastLogin: Int(Now()-[LastLoginDate])

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/8/2026 9:21:36 PM. PLT: 1s