Hi. Hope someone can help me??
I have the following code that I want to use to return a value:
Option Compare Database
Option Explicit
Function MW(MW_before, MW_after, Start_time, End_time)
MW = ((MW_before - MW_after) / MW_before) * (Start_time - End_time)
End Function
But when I use the command:
Expr1: MW([MW before],[MW during],[Resumption time],[Time of fault])
in a query box I get the error >
Function MW not recognised.
What am I doing wrong??
I have the following code that I want to use to return a value:
Option Compare Database
Option Explicit
Function MW(MW_before, MW_after, Start_time, End_time)
MW = ((MW_before - MW_after) / MW_before) * (Start_time - End_time)
End Function
But when I use the command:
Expr1: MW([MW before],[MW during],[Resumption time],[Time of fault])
in a query box I get the error >
Function MW not recognised.
What am I doing wrong??