Gretings,
My employer is using Windows XP Pro and Office 2003 (a few machines have Office 2010, but not mine). Furthermore, the machines are running the Japanese language OS, which has caused some compatability issues with my English XP/Office 2003 at home.
I have a form containing an unbound textbox, with the name MIS.
The form's Current event has the following code:
The calculates (correctly) the Months in Service of the employee who's information is being viewed.
Now, I am trying to create a report which lists the employees by work locations. The above , and other calculated information, is to be displayed in the report.
I used the wizard to create the report, using data from two different tables (employee & location).
I need to display the calculated information above for every employee at every location.
Example:
"Work Location"
"Employee Number" "Given Name" "Family Name" "Months in Service"
The report, as it is now, displays all work locations and the above employee info except the calculated data.
I've read up on using calculated fields in tables, and I'd prefer not to take this approach.
How can I use the above code with this report?
TIA,
MNM
My employer is using Windows XP Pro and Office 2003 (a few machines have Office 2010, but not mine). Furthermore, the machines are running the Japanese language OS, which has caused some compatability issues with my English XP/Office 2003 at home.
I have a form containing an unbound textbox, with the name MIS.
The form's Current event has the following code:
Code:
If IsNull([[ResignationDate]) Then
MIS = DateDiff("m", [NichiiGakkanStart], Date) + Int(Format(Date, "mmdd") < Format([NichiiGakkanStart], "mmdd"))
ElseIf [ResignationDate] > Date Then
MIS = DateDiff("m", [NichiiGakkanStart], Date) + Int(Format(Date, "mmdd") < Format([NichiiGakkanStart], "mmdd"))
Else
If Month([ResignationDate]) = Month([NichiiGakkanStart]) Then
If Day([NichiiGakkanStart]) < Day([ResignationDate]) Then
MIS = DateDiff("m", [NichiiGakkanStart], [ResignationDate]) + Int(Format([ResignationDate], "dd") < Format
([NichiiGakkanStart], "dd"))
Else
MIS = DateDiff("m", [NichiiGakkanStart], [ResignationDate])
End If
Else
MIS = DateDiff("m", [NichiiGakkanStart], [ResignationDate])
End If
End If
The calculates (correctly) the Months in Service of the employee who's information is being viewed.
Now, I am trying to create a report which lists the employees by work locations. The above , and other calculated information, is to be displayed in the report.
I used the wizard to create the report, using data from two different tables (employee & location).
I need to display the calculated information above for every employee at every location.
Example:
"Work Location"
"Employee Number" "Given Name" "Family Name" "Months in Service"
The report, as it is now, displays all work locations and the above employee info except the calculated data.
I've read up on using calculated fields in tables, and I'd prefer not to take this approach.
How can I use the above code with this report?
TIA,
MNM