Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Developers
Back to Access Developer Forum    Comments List
Command button in Edge Upload Images   Link   Email  
David McAfee      
2 months ago
Edge browser button for GPS works once then stops working. The website inserts a "%20 in front of "longitude."

https://msc.fema.gov/portal/firmette?latitude=37.11684&longitude=-82.82140

My code:
WB.Navigate "https://msc.fema.gov/portal/firmette?latitude=" & GPSStartLat & "&longitude=" & GPSStartLong

This works one time and then for some reason, the second and following times produces an error message and the URL has this:

https://msc.fema.gov/portal/firmette?latitude=37.11684&longitude=%20-82.82140

I can change the GPS numbers in the fields but it still produces an error message.

However, in the URL, I can backspace the "%20" out of the URL and it works, but that defeats the purpose of the command button.

Any thoughts?
Alex Hedley             
2 months ago
> A space is assigned number 32, which is 20 in hexadecimal.

Could you trim the variable(s) before you pass it to the URL?
David McAfee      
2 months ago
If by trimming the variables you meant reduce the field size of latitude and longitude, I looked and saw that I had them set to 10 each but I only needed 8 for latitude and 9 for longitude, so I set them accordingly. That didn't change anything. The %20 is still be added before the longitude and I think it might be their server but I don't know what else it could be. Like I said earlier, it worked the first time but only then. That was a good thought though. Thanks!
Kevin Robertson            
2 months ago
This is what Alex meant: Trim Function
David McAfee      
2 months ago
Well I'll be darn. That was it! What a simple mistake. Hats of to you Alex and Kevin.

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

 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 4/20/2024 10:14:12 PM. PLT: 1s
xxx