Argh. I’ve spent four hours trying to figure this out. And I just can’t.
OK – here’s my situation. I run a basic website for an organization with limited personnel – and those personnel have next-to-no web training.
Our website has a sidebar that contains a “Week at a Glance” calendar. Up til now, it’s been manually updated.
Today, I’ve been playing around with database results for that box. I created an Acces database with a record for each day – containing an “eventdate” field (couldn’t just use “date” since it’s reserved) and and “events” field and saved that database to our server.
I told the database results page to display the first seven records. Lo and behold! It worked.
that was before I tried to figure out how to tell it to make the first date it shows TODAY’S date, and show the next six from there. That way, my limited-training update person can update the database, and that sidebar automatically pulls events for today’s date and the next six as well and displays them.
I won’t go into what all I’ve tried, but suffice it to say that I can’t find anything online that tells me how to do what I want to do.
Everything I know about SQL I’ve learned today, so I am a MAJOR amateur with it. But here’s the code I think I need, with the exception of where the question marks are:
SELECT eventdate, events
FROM ataglance [that’s the name of my database table]
WHERE (eventdate = ???)
In that question mark spot, I’ve tried, well, everything:
And a couple of others.
If I get this figured out, then I figure it’s an easy step to tell it to pull events from today’s date PLUS one (For tomorrow’s events). Right?
Be gentle with me. I’m scared.