Append Events by Date

jollofrice

Registered User.
Local time
Today, 05:25
Joined
Jun 19, 2007
Messages
27
I have a series of events that have a start date and an end date. How do I write an append query to append an event to a table as an individual event for every day in the given range?
 
Assuming you are working with two tables, roughly (I may have the date format incorrect)...

Code:
INSERT INTO Table2 (EventName) 
SELECT Event
FROM EventTable 
WHERE Start_Date >= #dd-mm-yyyy#
      AND
      End_Date <= #dd-mm-yyyy#);

Regards,
Tim
 
Thanks, I'll give it a shot.
 

Users who are viewing this thread

Back
Top Bottom