Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
 
 
New Access Tips
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   14 years ago

I've added two new Access tips

The first will show you how to calculate the number of months someone has been alive using the DateDiff and DateAdd functions, something I haven't covered yet in my classes.

The second is something I get asked all the time... how to create your own value that automatically increments, but isn't an AutoNumber field.

Upload Images   Link  
Richard Rost 
14 years ago
Frank, very true. You would have to calculate the counter when the record is first edited and then IMMEDIATELY save it to the table. The chances of a data collision would then be very small. You could perform ANOTHER check when you then go to save the final record to the table, and update if necessary. That would make it REALLY rare for any collisions.
Add a Reply
Upload Images   Link  
Frank Parker 
14 years ago
Hi Richard.  I just read your Access tip on "Incrementing your own counter". It is a good tip for a single user database.  How would you implement this in a multi-user database? The DMAX statement could return the same value to multiple users.
Add a Reply

Start a NEW Conversation
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 

You may want to read these articles from the 599CD News:

1/18/2022Access B2 Upgrade
1/17/2022Access Beginner 2 Links
1/17/2022Access Beginner 2
1/17/2022New Record on Top
1/13/2022Missing References
1/13/2022Access Beginner 1 Links
1/12/2022Zoom
1/11/2022Access Fast Tips
1/11/2022System Defaults
1/10/2022Multi Select List Box
 

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
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
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: datediff dateadd iif beforeinsert dmax  PermaLink