Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Microsoft Access to web page. How?

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Microsoft Access to web page. How?

Post by RayProudfoot »

Having been inspired by Synewave's web pages I used my Access skills to create the following form. It gets its data from 44 separate queries but the results are displayed in less than 2 seconds.
Weather.jpg
How can this be achieved using web-compatible code? At this stage I'm only researching how it can be achieved rather than wanting to get stuck in to coding it. I doubt I have the skills anyway.

I imported dayfile.txt into an Access database to achieve the above.
You do not have the required permissions to view the files attached to this post.
Cheers,
Ray, Cheshire.

Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Microsoft Access to web page. How?

Post by steve »

You can do it with PHP as described here: http://www.w3schools.com/php/php_db_odbc.asp
Steve
RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Microsoft Access to web page. How?

Post by RayProudfoot »

steve wrote:You can do it with PHP as described here: http://www.w3schools.com/php/php_db_odbc.asp
Brilliant, thanks Steve.

The following is the SQL for the all-time max temperature. I presume I can just paste this into the $sql parameter and it will run?

SELECT TOP 1 Max(MaxTemp) AS [All-Time Max Temp], MaxTempTime AS [Time], Date
FROM Dayfile
GROUP BY MaxTempTime, Date
ORDER BY Max(MaxTemp) DESC;
Cheers,
Ray, Cheshire.

Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Microsoft Access to web page. How?

Post by steve »

RayProudfoot wrote:The following is the SQL for the all-time max temperature. I presume I can just paste this into the $sql parameter and it will run?
Yes, it should do. You'll have to change the other bits that refer to Company Name etc to match your names, of course.

The bit I'm not sure about is how you create a DSN on your web server...

There's info here about DSN-less connections: http://phplens.com/phpeverywhere/node/view/9#dsnless
Steve
RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Microsoft Access to web page. How?

Post by RayProudfoot »

Thanks Steve. DAJ is hosting my website so if you're reading this David could you confirm if it's possible to create a DSN please?
Cheers,
Ray, Cheshire.

Image
Post Reply