procedure to convert the dates in ms access(vb code requir - ms-access-2010

i have four forms namely file status , load file, reconciliation, and reports.
Reconciliation form has 2list boxes.. namely fiscal year and fiscal month. In that we have to choose for eg say i chose fiscal year 2012 and month as 1, then when i click open the reports form i have reports in there which displays information as per the year and the month.
what my requirement is in this report it displays fiscal year as i have chosen in the first step. But i do not want it because fiscal year 2012 and fiscal month 1 actually corresponds to actual year 2011 and month 10 i . e October. i want this to be displayed over there.

IF the corresponding Calendar Month/Year is always the same period behind, then a simple calculation could be done:
Format(DateAdd("M",-3,Format([FiscalPeriod]&"-01","ddddd")),"MMMM YYYY")
-OR-
Format(DateAdd("M",-3,Format([FiscalYear]&"-"&[FiscalMonth]&"-01","ddddd")),"MMMM YYYY")
If it's not, then You'll need a lookup table for each Fiscal Period and it's related calendar Month. Then have that value looked up on Your form using Dlookup() and have the report reference the lookup field instead of the List Boxes.
From the Access Help files:
DLookup(expr, domain [, criteria] )
Sample:
=DLookup("[ProductName]", "Products", "[ProductID] =" & Forms![Order Details]!ProductID)

Related

Get month and year when browsing the Calandar WebForm ASPX control

I would like to ask you for help, I need to get the month and year of the calendar control at the time that the user changes the month or year directly in the control.
Is it possible?
I need to change the color of the days that contain data in the SQL database, the code is OK but it is necessary to pass the Month and Year parameters to a stored procedure at the moment when the user changes the month or year in the Calendar control.
I am grateful in advance for your help.
I can only get the month and year from the current date when the control is loaded more when I change to another month or year, I cannot get this information.
Can you help me?
MesCalendar.Text = CalendarioPrincipal.VisibleDate.Month
AnoCalendar.Text = CalendarioPrincipal.VisibleDate.Year

List view - Select a specific day

I am using the calendar in list mode and a question has arisen. Can I select a specific day?
In the list mode I have a full month loaded, but when I enter for the first time I would like to select a specific day, by default, the day we are on.
Thanks for the comments, but what I need is to show all the information, and be positioned on a specific day, not always on the first day that has information, usually on day 1 of the selected month
It's possible?
Day view
list view
I used the method ".fullCalendar ('gotoDate', moment (" 30/10/2018 "," DD / MM / YYYY "))". In the rest of the views it works correctly but in the list mode the information of that day is not shown but it continues to appear on the day 01/10/2018.
Thank you

How can I filter by "updated this month" in a view?

I have a view filled with content of stuff that needs to be done every month.
I already have it set up to show everything that fits that parameter, I have one more thing i want it to filter by:
I want it to be able to show only things that have not been edited in the current month. This does not mean within a month.
If today is June 02 I want to
see something that was updated may 31
not something edited june 01
I am able to set it by an exact day, but i don't want to have to change that every month.
I am able to set it by a set amount of time(-1 month), but this will do it within a month instead of within the month
Remove your filter and add a contextual filter: Content: Updated month - Date in the form of MM (01 - 12). & select the option Provide default value to Current Date. This will make sure your view gets content from the current month & not from within a month range.

Pageviews per country per month in GA

I want to plot pageviews per country and per month in google analytics so I have a result like this:
Month / Country / Pageviews
October 2014 / Germany / 45.554
October 2014 / Russia / 32.435
...
November 2014 / Germany / 48.453
November 2014 / Russia / 33.786
...
I have tried this:
Audience -> Overview I have selected a long period and plot per month. Then I can get a country breakdown for that period but not per month.
Also it looks like I can only retrieve "Sessions" and not "pageviews" per country. Also in the detailed report, pageviews does not even show up.
So I tried this crazy workaround:
Behavior -> Site Content -> Content Drilldown
In the table below I have selected "country" in the 2nd dimension. Now I see each content drilldown per country and I also see the pageview. But I cannot group it per month. So I could now sort by countries, show all rows (a few thousend) and export via Excel to group countries together to have the pageviews per country in that period. I would have to repeat that for every month I want to look at -> lot of work.
Is there an easier solution to this?
Have you tried creating a custom report?
In your GA account, go to Customization, and then put in your metrics and dimensions.
Then click, Save.
You'll now have a custom report that you can email to yourself every month.

FullCalendar "Calendar" Month View Starting from Current Day

I have a need to use the FullCalendar plugin's month view, but with a small twist... I need the month view to be a calendar month (4 weeks) from the currently selected date, not a month proper (Jan, Feb, etc). In other words, I need the top left column to be the currently selected date, with the calendar rendering 4 weeks after that in month view.
Something similar to what is provided by thefirstDay property in agendaWeek view is close to what I am after. firstDay only sets the day of the week though, not a specific date within the month as the first day.
Try
firstDay: new Date().getDay()
in the parameters.
If you're going to show a Thursday in the upper left hand corner then what you've got isn't a calendar. It's a table data.
FullCalendar's firstDay is just for switching between starting on a Monday (European style) and starting on a Sunday (US style).

Resources