473,396 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

obtain actual year and month from fiscal year and month

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.
Mar 22 '12 #1
4 2180
NeoPa
32,556 Expert Mod 16PB
I'm not sure how you allowed yourself to post this question without it, but you left out the correlation between fiscal year and actual year, so nothing makes any sense of course.
Mar 22 '12 #2
Rabbit
12,516 Expert Mod 8TB
Write an expression where if the fiscal month is 3 or less, it subtracts one from the year and adds nine to the month. Otherwise, it keeps the year and subtracts three from the month.
Mar 22 '12 #3
Expand|Select|Wrap|Line Numbers
  1. Private Sub Receivables_Click()
  2. Dim InputX As Integer
  3. Dim InputZ As Integer
  4. Dim Fiscal_Year As Integer
  5.  Dim Fiscal_Month As Integer
  6.  
  7. If Fiscal_Month > 0 Then
  8.     If Fiscal_Month < 4 Then
  9.       InputX = Fiscal_Month + 9
  10.        InputZ = Fiscal_Year - 1
  11.     Else
  12.        InputX = Fiscal_Month - 3
  13.        InputZ = Fiscal_Year
  14.     End If
  15.     End If
  16. DoCmd.OpenReport "R3_Receivables", acViewPreview
  17. End Sub
this i provided but not getting the answer i am gettin errors.

i have given the correlation clearly that if its fiscal year 2012 n month 1 then it corresponds to actual year 2011 and month 10. probably you didnt read the whole thing.
Mar 23 '12 #4
NeoPa
32,556 Expert Mod 16PB
Kashish:
i have given the correlation clearly ...
The only thing you have made clear is that thinking is not one of your strengths.

A single example, without an explanation, is not only inadequate because examples are supposed to illustrate explanations, not take their place, but also because that leaves me to assume that you may want you fiscal months to match Gregorian calendar months as far as start and end dates go. I don't know what country you come from and I'm frankly not stupid enough to make that assumption because you can't be bothered to write the question properly. A clear question includes an explanation of your situation, not simply a loosely-worded sentence or two that relies on the reader to work out what the question should have been if it were done properly. The same is true for posting code samples. They can help illustrate a question, but they do not, in themselves, make a question.

Did I mention that showing attitude to those who offer their free time to try to help you doesn't illustrate great strength in the thinking department either? You might want to try exercising that part before posting next ;-)

Kashish:
this i provided but not getting the answer i am gettin errors.
And the error is? On which line? Please read Before Posting (VBA or SQL) Code as you seem to think it is our job to try to work out what you are having trouble with as well as to help you fix it.
Mar 23 '12 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: manning_news | last post by:
Using SQL 2000. I need to select rows based on a date range. Both the beginning date and ending date of the range will be entered in the mm/dd/yy format. There are 2 columns in the table called...
1
by: MissiMaths | last post by:
This isn't really an access question as I can write the code myself(I hope) but need to know how the start of the financial year is worked out. If someone knows the rules or an algorithm, I would...
2
by: Burghew | last post by:
Thanks for the previous replies..... What I need is to generate invoices for customers whom we rent out equipment. I will be choosing the date and year say for December 2005 print the invoices...
2
by: JohnC | last post by:
This fantastic expression was posted by Duane Hookom. I have no idea how it works but it displays the fiscal year and quarter for FY starting on October 1. =Format$(DateAdd("q",1,),"\Qq...
1
by: rkohon | last post by:
Hello all, I am new to JavaScript and need some ideas, suggestions, or code snippets. I have a form which requires the end user to put in a date for required items. I need javascript function to...
4
by: Twobridge | last post by:
Hi I am trying to perform a search that will return records based on a fiscal year search of the bill_Date. The user gives the year then I want to search based on the fiscal year (July 1 - June...
4
by: ltazz | last post by:
How can i make it so that Access will Recognize the fiscal year 07 start at 1 oct 2006, and end 30 Sep 2007? i know its possible, however cant figure it out. Thanks for the help in advance you...
2
by: =?Utf-8?B?Sm9lIFRhdmFyZXM=?= | last post by:
I am using the DateTime.Parse method to parse user entered dates. The dates can be just the year, Month-year and Month-day-year in a variety of formats in a variety of cultures. I immediately parse...
19
rcollins
by: rcollins | last post by:
I have a query that puts dates into quarters ofr me. The problem is that it puts it into jan-mar as quarter one. I need jul-sep of 2008 to be q1 2009 and jan-mar to be q3 2009. Any ideas?
2
by: Nick McConnell | last post by:
I'm trying to query a table and pull all data for the current fiscal year. I'd like the query to work whenever it's pulled be it tomorrow or 3 years from now. I found an IF clause on this website...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.