Unrelated table

D

DavidSt

I have an access 2000 database that I use to record bike trips and also use
to plan bike trips. The 'planned trip' portion of this database records
destinations and the roads leading there. If I decide I want to take a bike
trip; I simply print out a small report that contains the destination as well
as the general road directions. ---I thought that it would be helpful if I
included sunrise/sunset times on this print-out so that I would know my
window of daylight.

My problem is this: I have existing tables and forms that accomplish all of
the above (minus the daylight thing). I recently created a sunrise sunset
table that consists of Month, Day, Sunrise, Sunset). This table is
stand-alone in that it is not related to any of my other tables.

How do I pull the sunrise sunset data into my report? I would like to do
something along the lines of matching today's date (month and day) with the
same data elements in my sunrise sunset table.

Any thoughts would be appreciated.
 
D

Duane Hookom

You can create a date by adding your Month and Day fields to the year like:
TripDate: DateSerial(Year(Date()), [MonthField], [DayField])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top