kashishsinha
New member
- Local time
- Today, 10:23
- Joined
- Mar 23, 2012
- Messages
- 2
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.
so i have four text boxes in the form. one for FY one for FM one for AY and other for AM. FY and FM gets populated with 2012 and 1, i want the other two to have 2011 and 10 respectively. the code i tried using is not working. i am not sure as to what has to be added in the form and what in the module. i also donot know how to declare textbox value as variable
Private Sub test()
If Text19.Value > 0 Then
If Text19.Value < 4 Then
Text39.Value = Text19.Value + 9
Text43.Value = Text17.Value - 1
Else
Text39.Value = Text19.Value - 3
Text43.Value = Text17.Value
End If
End If
End Sub
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.
so i have four text boxes in the form. one for FY one for FM one for AY and other for AM. FY and FM gets populated with 2012 and 1, i want the other two to have 2011 and 10 respectively. the code i tried using is not working. i am not sure as to what has to be added in the form and what in the module. i also donot know how to declare textbox value as variable
Private Sub test()
If Text19.Value > 0 Then
If Text19.Value < 4 Then
Text39.Value = Text19.Value + 9
Text43.Value = Text17.Value - 1
Else
Text39.Value = Text19.Value - 3
Text43.Value = Text17.Value
End If
End If
End Sub