Is it possible to create a list of dates in a query from a start and end date in a table. eg I have a start date of 1st Jan 2006 and and end date of 30th Jan 2006 and it lists all the dates in between as a new record.
Do you want every date to be a field in the record? Hope not, that's just bad design.
Do you want a straight list of dates separated by a , or ;? then you could something like: [Orderdate] is start date
Dim i As Integer
Dim holdint As Integer
holdint = Me![Text11] 'textbox is an integer for # of days
For i = 1 To holdint
holddate = holddate & DateAdd("d", i, [Orderdate]) & ";"
Next
Me![Text16].Value = holddate 'holds answer
Hi sorry I was a little vague. There is a table of term dates for a school, Start, end and half term start and end. The database enters in two sorts of booking, one would be for a one off booking eg. an appointment. and then there would be a repeadted booking eg. period 3 on Tuesday. It is for the second type of booking I need the list of dates, as I need to be able to run a report for specific dates, so on a specific Tuesday you would run a report and that period three would show, but these repeating dates must only occur in term time.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.