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 19 Lessons    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Developer 19 Lesson 1
Ken Wykoff 
       
4 months ago
Ok, my first stumpper. I am working on the coding for the ProductList box on the Customer Form, and I got a type mismatch error. I looked at the code I placed in the Build Event, and it looks the same as the video and the handbook. Although I will not swear by it because the more I look at it and search for Type Mismatch, I become even more confused. What causes this mismatch thing, and if nothing is misspelled, why do I get this message?
Ken Wykoff OP  @Reply  
       
4 months ago

Ken Wykoff OP  @Reply  
       
4 months ago

Ken Wykoff OP  @Reply  
       
4 months ago

Kevin Robertson  @Reply  
          
4 months ago
Is ProductID a number (Long Integer) in CustomerInterestT?
Sandra Truax  @Reply  
         
4 months ago
Keep going in the video because at first, it did not work for Richard either. Then he fixed it.
Ken Wykoff OP  @Reply  
       
4 months ago
Kevin It is a number
Ken Wykoff OP  @Reply  
       
4 months ago
Sandra Thank you, Sandra, and I will look for that too. I saw he fixed one by adding the CLNG, but this warning came before his fix on that. So he must have found this after that.
Donald Blackwell  @Reply  
        
4 months ago
Since it highlighted "Set db = CurrentDb", double check your Dim statement just to make sure Intellisense didn't pop something in other than "database" while you were typing. I've been getting some crazy things popping in there when I just let the VBEditor finish the word for me. Sometimes it will just put "DAO", sometimes "database" or "databases" or "DBEngine".

Type mismatch is telling you that you're comparing two different kinds of variables, or at least Access thinks you are. Or that you have declared one type but you're trying to set it to another.
Ken Wykoff OP  @Reply  
       
4 months ago
Thanks Donald for replying. I did look above at the DIM like you said and instead of Database it was Datebase. Funny that it never spotted that before this. That's one more thing I need to watch for. The other thing I've learned to watch is that it wants to type in re instead of rs. Is there a way to shut off that Intellisense thing in Access? Just curious. Ken

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer 19 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: 5/2/2026 9:36:47 AM. PLT: 0s