Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Weather API 2    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Compile error Type Mismatch
Tannim Hallman 
     
2 years ago
I was getting a type mismatch error in my GetWeather() function so I downloaded the database and copy/pasted from yours. I'm still getting the error but when I compile your copy, I don't.
MyURL = "https://api.openweathermap.org/data/2.5/weather?" & _
        "zip=" & Forms!MainMenuF!ZIP & "&units=imperial&mode=xml&appid=" & APIKEY
Where it highlights is !ZIP
I checked and the ZIP field is a regular text field. I didn't change any properties. I have also closed down the database and re-opened it.
Alex Hedley  @Reply  
           
2 years ago
What's the name of the Control?
Tannim Hallman OP  @Reply  
     
2 years ago
The control is named ZIP. I checked that, too, because I don't type as well as I used to. I have also gone as far as rebooting the entire machine, and the error persists. I also tried with [ZIP] and [MainMenuF]![ZIP]
Alex Hedley  @Reply  
           
2 years ago
What happens if you MsgBox ZIP?

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Weather API 2.
 

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/7/2026 10:43:01 AM. PLT: 1s