Solved

update map on webpage from access db

Posted on 2014-01-05
7
325 Views
Last Modified: 2014-01-18
I have an extremely simple db one table TblCountry and TblNames.

The name table has names of people who emigrated from Dover along with the country code (autoid) of TblCountry.

I have a wordpress site.
At present I have a decent png of a map of the world and just edited the totals against each country manually.  but its too labour intensive.

Is it possible and how could I update the map from the DB.

so if USA went from 9 people to 10 it would be updated from the db.

Heres the query data:
Country      Number of People
Within UK      12
USA      6
Australia      6
Spain       5
Germany      2
Virgin Islands      1
Singapore      1
Portugal      1
Norway      1
New Zealand      1
Greece      1
Gibraltar      1

SELECT TblCountry.Country, Count(TblNames.CountryID) AS [Number of People]
FROM TblCountry LEFT JOIN TblNames ON TblCountry.ID = TblNames.CountryID
GROUP BY TblCountry.Country
HAVING (((Count(TblNames.CountryID))>0))
ORDER BY Count(TblNames.CountryID) DESC;

Open in new window


I have attached the map so you can see.
regards in advance
ExPatsfromDover.png
0
Comment
Question by:PeterBaileyUk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 85
ID: 39757163
At present I have a decent png of a map of the world and just edited the totals against each country manually.
You'd need to tell us more about how you did that. Does the map derive information from your database to show the values? If so, can you show how it does that?
0
 
LVL 40

Expert Comment

by:als315
ID: 39757266
You can use free OpenStreetMaps plugin for Wordpress:
http://wordpress.org/plugins/osm/
It can show markers from text file, which could be generated from Access and uploaded to your site.
0
 

Author Comment

by:PeterBaileyUk
ID: 39757502
No The map was just an image and I edited in windows paint the numbers.
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

Author Comment

by:PeterBaileyUk
ID: 39757513
Will the wordpress plugin allow me to map between one country and another?
0
 
LVL 40

Accepted Solution

by:
als315 earned 500 total points
ID: 39757597
Yes, you should set coordinates of markers.
There is author's blog with a lot of samples:
http://wp-osm-plugin.hanblog.net/exsamples/display-marker-file/
0
 

Author Closing Comment

by:PeterBaileyUk
ID: 39773053
Thank you apologies for slow reply, had a hectic week.
0
 

Author Comment

by:PeterBaileyUk
ID: 39790561
I tried installing the osm product and the google maps but when I try that i get the page that asks for ftp credentials and not sure what to put their.

I am already in the wordpress dashboard.

Wasnt sure either if i needed to post a new question.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question