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 
Custom Nav Buttons
David Clement 
      
3 years ago
I have created a form with Custom Navigation Buttons as to Richards fine instruction. They work GREAT!
However, I can not seem to get this to work on the same form:
DoCmd.GoToRecord,,acNewRec
Do they not work together?
Thank you for all your advise. I really do appreciate it.

David Clement OP  @Reply  
      
3 years ago

Juan C Rivera  @Reply  
            
3 years ago
I think we need more info can you get a snapshot of the full procedure.  I think there is more to what we are shown.  

V/r
Juan
David Clement OP  @Reply  
      
3 years ago
This is what runs the "Navigation" Record Count Box

Private Sub Form_Current()
    RecCountBox = Me.Recordset.AbsolutePosition + 1 & " of " & Me.Recordset.RecordCount
    
End Sub

This is what is supposed to load at form start up.

Private Sub Form_Load()
    DoCmd.GoToRecord , , acNewRec
End Sub

Juan C Rivera  @Reply  
            
3 years ago
If you are trying to load the form on start watch richards video How to Load a Form on Startup or call the sub from form current

Private Sub Form_Current()
    RecCountBox = Me.Recordset.AbsolutePosition + 1 & " of " & Me.Recordset.RecordCount
    
End Sub

This is what is supposed to load at form start up.

Private Sub Form_Load()

    DoCmd.GoToRecord , , acNewRec
    RecCountBox = Me.Recordset.AbsolutePosition + 1 & " of " & Me.Recordset.RecordCount

End Sub

give that a try and see what happens.

V/r
Juan
David Clement OP  @Reply  
      
3 years ago
I'm sorry, this code:

Private Sub Form_Load()

    DoCmd.GoToRecord , , acNewRec
    RecCountBox = Me.Recordset.AbsolutePosition + 1 & " of " & Me.Recordset.RecordCount

End Sub


did not work.
I have never had this code not work before.

Thank you for the advise.

David Clement OP  @Reply  
      
3 years ago
I'm sorry, this code:
  DoCmd.GoToRecord , , acNewRec
Kevin Robertson  @Reply  
          
3 years ago
Try this code:

Private Sub Form_Current()

    If IsNull(CustomerID) Then
        RecCountBox = Me.Recordset.RecordCount + 1 & " of " & Me.Recordset.RecordCount + 1
    Else
        RecCountBox = Me.Recordset.AbsolutePosition + 1 & " of " & Me.Recordset.RecordCount
    End If
    
End Sub


Private Sub Form_Load()

    DoCmd.GoToRecord , , acNewRec

End Sub

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 9:53:12 AM. PLT: 0s