christimess
Programmer
I created the following macro:
Sub Percent ()
X=VAL((Field$("OVERTIME_HOURS")) / VAL(FIELD$("AL_HOURS"))
DerivedField Str$(X)
End Sub
"OVERTIME_HOURS" is a derived field
"AL_HOURS" is a column from the AL_CHK_HRS_ERN table.
When I test the macro it states it is compiled successfully.
When I go to run the report I get the following error message at the end:
ReportBasic Macro Error
Run-Time Error in Macro: Percent,
Procedure: Percent Overflow
Thanks!
Sub Percent ()
X=VAL((Field$("OVERTIME_HOURS")) / VAL(FIELD$("AL_HOURS"))
DerivedField Str$(X)
End Sub
"OVERTIME_HOURS" is a derived field
"AL_HOURS" is a column from the AL_CHK_HRS_ERN table.
When I test the macro it states it is compiled successfully.
When I go to run the report I get the following error message at the end:
ReportBasic Macro Error
Run-Time Error in Macro: Percent,
Procedure: Percent Overflow
Thanks!