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 
DMax on CustomerID
Lori Foy 
     
4 years ago
Hi, I was watching the Create Your Own Custom Sequential Number with DMAX (https://www.youtube.com/watch?v=xY3fGgdqQuU&t=0s) and at 32.37, I have my code the same in the afterupdate event.  My CustomerOrderNumbers are consistently remaining at 1 and not increasing to the following numbers.  Any suggestions welcome!

Lori Foy OP  @Reply  
     
4 years ago

Adam Schwanz  @Reply  
           
4 years ago
I'm guessing you're always returning Null and then always setting it to 1 every time with your +1

Underscores can cause issues, first try making that around brackets [tbl6c_Contracts] and see if it works.
If not, is customerID a number/autonumber or a string?
Lori Foy OP  @Reply  
     
4 years ago
Thank you for the quick reply, Adam!  I'm still getting the same error with the brackets.  The customer ID is a number (long integer). The ordernumber works fine, it's just the customerordernumber.
Scott Axton  @Reply  
        
4 years ago
At 33:34 Richard show the issue of the default value of 0 in the CustomerID.  Did you get rid of the Default Value?
Lori Foy OP  @Reply  
     
4 years ago
Hi Scott,  Thank you, and yes, I had removed the 0 default value in the table.

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 7:42:46 AM. PLT: 0s