Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

update map on webpage from access db

Posted on 2014-01-05
7
Medium Priority
?
331 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 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

886 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