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 
Runtime Error 2046
Carolyn Bendahan 
     
3 months ago
Hello all of you, again I am struggling.
I have a subform which will be filled via double click on a listbox on the same parentform. The subform shows a delete button (small x) for each record, to delete the record, in case the double click was wrong. Everything works perfectly. Now a user told me, when you click the delete button of the new record, there will be a 'laufzeitfehler 2046' Hopefully the correct translation is: runtime error 2046. I tried everything that came into my mind (conditional formating, On error resume next). But I failed. Could anybody please help me out with an idea? thanx a lot Carolyn
Adam Schwanz  @Reply  
           
3 months ago
If Me.NewRecord Then Exit Sub
'Rest of your normal code.
Kevin Robertson  @Reply  
           
3 months ago
You can't delete on a new record (there is no record to delete).
You need to either hide or disable the button if on a new record.
Or, exit the sub so your delete code doesn't run.

Me.NewRecord
Kevin Robertson  @Reply  
           
3 months ago
Adam Beat me by 10 seconds.
Adam Schwanz  @Reply  
           
3 months ago
Kevin You Explained More :) lol
Carolyn Bendahan OP  @Reply  
     
3 months ago
I am a little in love with both of you, and so time doesn't matter. Thank you so much!!!
Carolyn Bendahan OP  @Reply  
     
3 months ago
sorry, of course I meant to say all of you... You are my heroes! Not just for today.
Carolyn Bendahan OP  @Reply  
     
3 months ago
why dont you do a #me.beating x()? meaning you have beaten by  10 (sec) or by 1 (info)

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: 4/30/2026 12:45:05 PM. PLT: 1s