Solved

update map on webpage from access db

Posted on 2014-01-05
7
320 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
  • 4
  • 2
7 Comments
 
LVL 84
Comment Utility
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 39

Expert Comment

by:als315
Comment Utility
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
Comment Utility
No The map was just an image and I edited in windows paint the numbers.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:PeterBaileyUk
Comment Utility
Will the wordpress plugin allow me to map between one country and another?
0
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
Comment Utility
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
Comment Utility
Thank you apologies for slow reply, had a hectic week.
0
 

Author Comment

by:PeterBaileyUk
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now