MS-Access database help needed - ms-access

I am a beginner in using Access. In the past I used a database where I could select a beginning and ending date on a calendar, and the query would bring back all items that would "occur" during those dates. I would like to replicate that database.
The records would need to be pulled based on their frequency- for example I have items that occur on a monthly (on a certain date), weekly (on a certain day), bi-weekly (every other day of the week). (There are codes to represent this- for example PPBR would be every other Thursday; PPM23 would be the 23rd of each month; PPWT would be weekly every Tuesday). Like setting up a reoccurring appointment in outlook, these items would also continue for future dates so that I know when they need to occur next by just clicking on the calendar.
For example, on Tuesday June 23rd, all items that occur every other Tuesday, items for the 23rd and weekly on Tuesday should all be pulled into one report.
I have created a table for the main record info. I have also created a separate table listing all the variations of the frequency (code and day of week/date they occur) and have linked them.
I am stuck at this point as to how to create and incorporate the calendar function and would appreciate any assistance.
Thank you!

June7's comments direct you to ask a more focused question. I gather that you are simply asking how to incorporate "calendar functionality", but your detailed description muddles your intention.
Since you've create something like this before, I presume that the "calendar" you mean is simply the calendar-style date picker already available with the TextBox controls. In that case, you could add two unbound TextBox controls --one for the beginning date and one for the ending date-- and set the following properties in the Property Sheet:
Format: Short Date
Show Date Picker: for dates
After Update: [Event Procedure]
With the Show Date Picker property enabled, upon clicking inside the TextBox control a little Calendar icon is displayed. Clicking on that icon shows a pop-up date picker.
In the TextBox_AFterUpdate event handlers add code to update the Form's RecordSource with an appropriate query. (It would also be possible to refer to the TextBox values directly in a query, but your description of the date criteria sounds too complicated to handle in a single query directly.)

Related

For SSRS Parameter, How to show dates after a certain date in calendar instead of a drop down list?

When setting date range parameter for a SSRS report, I would like to show dates in calendar (like the attached picture below), while the calendar should have a earliest from date 2022-01-01 (which means once user click on the From Date calendar, it will not show dates earlier than 2022-01-01).
I'm not sure if this is possible?
I have tried to use a dataset to list dates after 2022-01-01, but this would turn #Fromdate into a drop down list instead of a calendar.
I'm really appreciate if any one could help. Thanks a lot!
Best Regards.

How to make a weekday field and time-of-day field that are not actual dates?

I have a table in Access that lists all classes at a school. I'm trying to create a field that indicates what day of week class meets (Monday, Tuesday, etc), and another field for what time of day the class starts (2:30 pm etc.). I shouldn't have to input an actual calendar date, because these values stand for a schedule that occurs weekly. It seems my only option is to use a text field? Surely this has been solved a thousand times. What would be best practice for this type of application?
Use some arbitrary date this has the first weekday of your weeks.
Add one day for every subsequent weekday, and apply the format dddd to display the weekday name.
Apply a time part as needed, and set the format when displaying the values to Short Time or similar.

Combo Box Record Issue

I am just learning database design and using Access for a class project. I've created a form to track case notes, and I'm having an issue. I want to select a Name in a combo box, then above it select the date combo box that will list all of the notes created for that person, displayed by their dates. Simply click on the date, and the note appears in the Note field below. It's meant to be a read-only form so you can't edit the created notes, just view them.
Well it works fine, but when I have multiple notes that were created on the same day, you can only select the first note from that day, not the subsequent notes from the same day. Clicking on them does nothing, and the Note field continues to display the first days record. Even clicking the Date combo box and the later notes in the same day still brings up the first note of the day. Weirdly though, clicking on the drop-down arrow in the date combo-box and then using the arrow keys on the keyboard cycle through the dates just fine though. It just doesn't work when using a trackpad/mouse. What gives?
Thanks!!!

SSRS report with "Checkbox"-like feature that adds filters to query

I have a SQL database and using SSRS to produce reports. They are both 2012 version. The data is well water levels that are record every hour. Originally I have the report displaying ALL of the data for a user selected well (dropdown list). The user can also select the start and end date (text box) But the well levels don't change that much every hour unless there is a significant rain/flooding event. So I want the user to have the option to choose only the noontime values for each day. Is there a way to have a checkbox that would either 1) change actual query the report is using or 2) include filter that says only display 12:00:00? The parameter options seems to want to include a date and I only want to filter by time.
Thanks
I think the solution for you is to add a parameter to your report to be able to select what information to show with 2 possible values - All / Noon only. Then add a new field / calculated field to your dataset to indicate which ones are noon values. Then use the new parameter to filter the values showed in the report.
Hope it makes sense.

How to create a Multiple date picker for a search form

I am quite a newbie to MS Access.I am working with a search form in MS Access and I want to create a date picker in which I can select multiple dates which will be an input for a Query that is used to search and display the results from my table for the records that have the selected dates. I did some research on this,however I was unable to find out a feasible solution for my problem.
As I see there are only 2 ways in which this can be done.The first way is that is using two date pickers one for from date and other for to date and then search for the records between these days which is not very feasible for my scenario as I might want to choose two different dates for example 4th of Jan and 6th of Jan and display results for only those days.
The other method is to use a list box which displays all the dates that are present in the database and choose from that however this is not going to work for me as if I have a very long list of dates such as from 1st Jan to 31st Jan then it would be very time consuming and also I might select a date which I do not want to to search for also in the results.
Could anybody suggest me how can I solve this problem.I am looking for a multiple date picker property in access.Is it possible to achieve this through the form properties? If yes how can it be done? Or is there any other solution for this problem?
Thanks in Advance.
I would recommend creating a temp table consisting of two fields, a Yes/No field and a Date field. Populate the date field (don't name it 'date') with all of the dates from your list of dates. Then on your search form add a subform bound to the temp table. Users would simply check the box next to the desired dates. Then modify your query to include the temp table with a join on the date fields and criteria that the Yes/No field is True (Yes).
Its doubtful youre still looking for this but for anyone else that happens accross this topic I modified an existing datepicker to allow selection of any number of non-contiguous dates, and insert them to a table. I posted it on UtterAccess (A great forum for Access questions). A link to the forum topic is below, but you need to create an account to download the example file.
http://www.utteraccess.com/forum/index.php?showtopic=1738361&st=0#entry2535392
You could combine the two approaches and have
Two textboxes to filter for a short date range (say 1 month dates)
Show the dates in this date range in a multiselect listbox where the user can select the specific dates they need.