Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Random Type Error
William Dowler 
      
3 years ago
Hi,
I have form that contains a field: ProjectMaterialsAmount
The control source for this field is: =IIf([frmSubOrderMaterial]![SubMaterialAmount]>0,[frmSubOrderMaterial]![SubMaterialAmount],0)
An After Update event is curMaterialTotal = ProjectMaterialsAmount
If I navigate through the records in the table (Next Record) the first time this record is displayed everything is fine.
However, if I move from the record and then move back to it this field shows a #Type! Error.
This is driving me insane!!
Any suggestions would be gratefully received'..
Kevin Robertson  @Reply  
          
3 years ago
Screenshots?
William Dowler OP  @Reply  
      
3 years ago

William Dowler OP  @Reply  
      
3 years ago

William Dowler OP  @Reply  
      
3 years ago
Image 1 is first time accessing the record.
Image 2 is after moving to next record and then previous record.
Juan C Rivera  @Reply  
            
3 years ago



before you do anything back up your work.

Look in you property sheet and see if its linked right?  next will be is your table set up correct.  you may not be adding the value to your table and then when it try to calculate you get the error.

William Dowler OP  @Reply  
      
3 years ago
Juan,
Thanks for your response.
The forms are linked correctly.
The fields in question are calculated from other fields on the form, so no table fields required.
William Dowler OP  @Reply  
      
3 years ago
OK, I fixed this by referring to the fields on the subform correctly, with a full path from the parent, to its subform, then to the subform containing these fields.

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: 8/7/2026 11:25:27 PM. PLT: 0s