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 Developer 39 Lessons    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Duplicating Developer 39
Michael Albert 
      
8 months ago
Good afternoon,

I have my own naming conventions for my files and fields within.
I am trying to duplicate D39 (for example) and replace their files and fields with my own.  I keep geting an Variable not found Error.  

Any ideas as to what I doing wrong.
Kevin Robertson  @Reply  
          
8 months ago
Sounds like either a variable is misspelled or missing.

Show us the error.
What line is highlighted?
Michael Albert OP  @Reply  
      
8 months ago

Michael Albert OP  @Reply  
      
8 months ago

Michael Albert OP  @Reply  
      
8 months ago

Michael Albert OP  @Reply  
      
8 months ago
Now I'm getting a syntax error, but it's the same line that was giving me the original error.
I uploaded the error message, the line in question and the file layout of TPR10bD39DocIndex.
Donald Blackwell  @Reply  
       
8 months ago
Try moving your SQL statement into a string and statusing it before trying to execute the query. That will show you what Access is working with:

DetailsStatusBox = ""
Status "Indexing..."
' AbortBtn.Visible = True

Dim S as String

S = "DELETE FROM TPR10bD39DocIndex WHERE TPR10bDocID = " & TPR10DocID
Status S

CurrentDb.Execute S
Kevin Robertson  @Reply  
          
8 months ago
I would be looking at the Primary Key and use the NZ Function in case a Null value is returned.

CurrentDb.Execute "DELETE FROM TPR10bD39DocIndex WHERE TPR10bDocIndexID=" & Nz(TPR10DocIndexID,0)
Michael Albert OP  @Reply  
      
8 months ago
That shows TPR10bDocID as being empty
Michael Albert OP  @Reply  
      
8 months ago
Kevin, when I try your suggestion i get the same results.
Michael Albert OP  @Reply  
      
8 months ago
I notice that the forms Record Source is TPR10aD39Doc, and that file does not contain TPR10bDocIndexID.  Does that matter?
Kevin Robertson  @Reply  
          
8 months ago
Show us your Form (Design View AND Form View).
Kevin Robertson  @Reply  
          
8 months ago
Then that is the problem. Access has no idea what that field is.
Michael Albert OP  @Reply  
      
8 months ago
Well, the thing is I'm following Richard in Developer 39 step by step and his works fiine. It also works fine in my production db., but that uses the original files, not my files. I've got to leave this for now for the rest of the morning. I'll get back as soon as I can, and thank you very much for the help.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer 39 Lessons.
 

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: 6/16/2026 6:16:45 AM. PLT: 0s