MS Access How to automatically fill in my calendar report with start and end dates?
I created a scheduler where the user inputs name and start and end dates.
My report will display all days in the month.
How can I auto fill the dates in the report?
I.E. the user will be on vacation from 12-1-12 to 12-7-12 according to the form input.
I would like all date boxes from 12-1-12 to 12-7-12 to display the employee name and event (vacation).
Microsoft Access
Last Comment
DJPr0
8/22/2022 - Mon
Jeffrey Coachman
You can do this with a Grouped Report or a sub report.
(One date, many possible Events)
You also need a system that will Generate (or display) ALL dates in the given range
(Typically just a table with all dates listed.)
...To be the "parent" record
Jeffrey Coachman
There are a lot of detail missing here, so my guess is that you just need a starting point
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
gdemaria
As boag suggested, I always have a table in my database used for this type of purchase. The table has preloaded one record for every date from 1900 through 2100 (or whatever range you need as a max). For convenience, I have other date related columns indicating whether whether the date is a weekend, holiday, the date in text format, the day of week in text format (Mon, Tue, Wed...) and stuff like that. Although you can (sometimes) easily derrive these, its so simple to pull it from the table if you're going to join it anyway.
In addition to the date columns, I have a number column which is just 0 through X. This also comes in handy when filling in missing numbers or doing dateAdd functions.
DJPr0
ASKER
Database10.accdb - The form will display a date range provided.
How can I create a form for user input into to the tblappointments table a date range instead of the user inputting day by day input I.E. 12-1-12 vacation, 12-2-12 vacation, 12-3-12 vacation etc...
I would like to use a table with date ranges to supply the Database10.accdb form report.
RecordID RecordDateFrom RecordDateTo EmpID ReasonCode
1 12-1-12 12-7-12 4 101
Form report will display all days in the range provided I.E.
EmpID Date ReasonCode
John 12-1-12 Vacation
John 12-2-12 Vacation
John 12-3-12 Vacation
John 12-4-12 Vacation
John 12-5-12 Vacation
John 12-6-12 Vacation
John 12-7-12 Vacation
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
Unlimited question asking, solutions, articles and more.
Jeffrey Coachman
Refdate was only there because I thought this was primarily a "Report" question, and you wanted to display all dates, even if not Time off was requested for that day.
You can still keep it (and update it) for that reason (to show all dates in a report), but as far as the code I posted, ...it is irrelevant.
(One date, many possible Events)
You also need a system that will Generate (or display) ALL dates in the given range
(Typically just a table with all dates listed.)
...To be the "parent" record