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 Amortization Lessons    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Missing LoanID
Ian O 
    
15 months ago
Loved seminar and your work in general.
However, since I have received a copy of the Amort2.1 I've received an error when I try to add a new loan.
The error is Run-time error 3075 Syntax (Missing Operator) in query expression 'LoanID='.

The Debug highlights this line in the
DetailsPrivate Sub SetLifeOfLoanDates()
    LoanStartDate = Nz(DMin("DueDate", "ScheduleT", "LoanID=" & Forms!LoanF!LoanID), TempVars("MINDATE"))
End Sub

Can you help with a solution?
Alex Hedley  @Reply  
           
15 months ago
Where did you try and create the Loan from? Which Form?
Ian O'Dett OP  @Reply  
    
15 months ago
The Add New Button from ClientF
Ian O'Dett OP  @Reply  
    
15 months ago
Alex, any thoughts?
Alex Hedley  @Reply  
           
15 months ago
Does LoanID not auto populate when the Form opens?
Ian O'Dett OP  @Reply  
    
15 months ago
I believe that is the issue.  In particular, when the form opens as acFormAdd.  I've even tested it by creating a new buitton with only the following.      

DoCmd.OpenForm "LoanF", , , , acFormAdd

This creates the same error as the Add New button.
Ian O'Dett OP  @Reply  
    
14 months ago
It seems as if the Form_Load function is firing before Forms!LoanF!LoanAmount = 1 can be set
Ian O'Dett OP  @Reply  
    
14 months ago
In particular, the SetDateFilters within the Form_Load function fires SetDateFilters which fires the SetLifeOfLoanDates function leading to the error mentioned in the beginning of this thread.
Ian O'Dett OP  @Reply  
    
14 months ago
I believe I have found a solution.  At least it seems to be working for me.  In the LoanF I did the following

Private Sub Form_Load()

    If Me.DataEntry = False Then
        LoanRequirementsOK
        TempVars("LoanConditionsChanged") = False
        SetDateFilters
    End If
    
End Sub

Hopefully, you find this helpful.  I look forward to any feedback you can provide.  Apologize for my delays in getting my response onto here.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Amortization 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: 4/30/2026 9:25:05 AM. PLT: 0s