473,803 Members | 3,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fiscal Year

7 New Member
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 guys are great!
Jun 1 '07 #1
4 1842
ltazz
7 New Member
Anyone know how to make this statement work???
Trying to have it subtract a year from the first 2 months of the FY, october, november, and december.
if i can get this to work i will have no issues...

Private Sub Command0_Click( )
Me.Text1 = "# " + Me.Text37 + "" + Me.Text39 + " #"
Me.Refresh

End Sub

Private Sub Text35_AfterUpd ate()
yearit
dateit
End Sub
Private Sub Text33_AfterUpd ate()
yearit
dateit
End Sub

Private Sub dateit()
If Me.Text33 = "OCT" Then Me.Text37 = "10/1/20"
If Me.Text33 = "NOV" Then Me.Text37 = "11/1/20"
If Me.Text33 = "DEC" Then Me.Text37 = "12/1/20"
If Me.Text33 = "JAN" Then Me.Text37 = "1/1/20"
If Me.Text33 = "FEB" Then Me.Text37 = "2/1/20"
If Me.Text33 = "MAR" Then Me.Text37 = "3/1/20"
End Sub

Private Sub yearit()
If Me.Text33 = "Oct" Then Me.Text39 = "" + Me.Text35 + ""
If Me.Text33 = "NOV" Then Me.Text39 = "" + Me.Text35 + ""
If Me.Text33 = "DEC" Then Me.Text39 = "" + Me.Text35 + ""
If Me.Text33 = "JAN" Then Me.Text39 = "" + Me.Text35 + ""
If Me.Text33 = "FEB" Then Me.Text39 = "" + Me.Text35 + ""
If Me.Text33 = "MAR" Then Me.Text39 = "" + Me.Text35 + ""
If Me.Text33 = "APR" Then Me.Text39 = "" + Me.Text35 + ""
If Me.Text33 = "MAY" Then Me.Text39 = "" + Me.Text35 + ""
If Me.Text33 = "JUN" Then Me.Text39 = "" + Me.Text35 + ""
If Me.Text33 = "JUL" Then Me.Text39 = "" + Me.Text35 + ""
If Me.Text33 = "AUG" Then Me.Text39 = "" + Me.Text35 + ""
If Me.Text33 = "SEP" Then Me.Text39 = "" + Me.Text35 + ""
End Sub
Jun 1 '07 #2
ltazz
7 New Member
once again i figured it out...
it may not be the cleanest, easiest way of doing it...
but it works.

thanks to any, and let me know if you need to know how i did it. ill be glad to give you a hand..
feel free to PM me...
Jun 1 '07 #3
uzairahm
11 New Member
once again i figured it out...
it may not be the cleanest, easiest way of doing it...
but it works.

thanks to any, and let me know if you need to know how i did it. ill be glad to give you a hand..
feel free to PM me...
Hi itazz
I am also looking for a solution for retrieving data as fiscal year (april- march)
could you please guide me the solution.
i have stored date in a date field type
thanks
Jun 27 '07 #4
FishVal
2,653 Recognized Expert Specialist
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 guys are great!
Hi!


The simplest way I know is the following

Year(DateAdd("m ", -9, [Your Date]))
where 9 is a number of the last month in fiscal year (September in your case)

or the following which return a start of fiscal year [Your Date] belongs to
DateSerial(Year (DateAdd("m", -9, [Your Date])), 10, 1)


Good luck
Jun 27 '07 #5

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

Similar topics

1
2503
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 be most grateful. In 2001, when the 1st April 2004 was on a sunday, the first (monday to friday) week of the financial year was the 9th to 13th April. In 2002, the 1st was on a monday and the first week was 8th to 12th april. In 2003, the 1st...
3
6941
by: haydn_llewellyn | last post by:
Hi, My company runs on a fiscal calendar that starts on the first monday in July, and is based on a 13 week quarter (4 weeks, 4 weeks, 5 weeks). What I need, is a way of relating Date() to the actual fiscal month (e.g. today is 01/07/05, and is the last day in June in our fiscal calendar). I tried many methods, and had hoped that DatePart() with the 'ww' flag and DatePart() with the 'w' flag (to choose the first monday in July,
2
11778
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 yyyy",0,0) It displays the first quarter for FY 2007 as Q1 2007. However I would like to display this as 2007 Q1. I couldn't get this to work.
1
7634
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 run on this date supplied by end user and for it to populate another area of the form with the Fiscal Year that this will be needed in. Example: User populates form field with 25-SEPT-07 we need the the Quarter required to immediately poplate...
4
2688
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 30) for the year given. The table looks like this Bill Table id_Num bill_date bill_amount 23 7/1/2005 500.00
3
2091
by: shiznaw | last post by:
I got another problem while working on this database for the Univ. The Form.viewreports has several radial button options so that the user can view a Report for several periods--like a day, a week, a month, etc. The frame is linked to a select case statement. The user is also able to choose the radial button options: "fiscal year" and "fiscal year-to-date" reports. The fiscal year for the univ. starts on July 1st. The Query that...
7
1701
by: uzairahm | last post by:
Hi! I wanted to modify the query the query is given below. SELECT Format(,"yyyy") AS , ProcFees.ProcName, Count(ProcFees.ProcName) AS CountOfProcName FROM ProcFees INNER JOIN (Procedures INNER JOIN ProcDetails ON Procedures. = ProcDetails.) ON ProcFees. = ProcDetails. WHERE ProcFees.ProcName<>"General Anaesthetic" And ProcFees.ProcName<>"Local Anaesthetic" GROUP BY Format(,"yyyy"), ProcFees.ProcName HAVING ((Format(,"yyyy")<>"IsNull")...
6
6307
craigfr
by: craigfr | last post by:
I am making a graph comparing last year's defect data with YTD defect data. Our fiscal year starts Nov.1 and ends Oct.31. To get the YTD, I started used a simple date serial criteria: Between DateSerial(Year(Date())-1,11,1) And Date() This works, but only for 10 months out of the year. If your'e in December, it will calculate the YTD from last year's November to the current December, not the last November. My solution was to make an...
2
4319
by: RZ15 | last post by:
Hi guys, I'm really drawing a blank here for how to deal with fiscal months in my monthly sales/receipts reports. My issue is that calculating the months is not as simple as saying 'if the invoice date is january then sum sales' because the first period may include the end of december or even the beginning of february and not all of january. To help me with my problem, it's probably helpful to not think of it as fiscal months but think of...
0
10546
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10310
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10292
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7603
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6841
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.