A
angelasg
Hello.
I just built a custom function in Access 2002 called RoundQtrHour
which rounds a number of minutes to the nearest quarter hour as a
decimal.
I tried to use it in a form and query and I got the error message:
Undefined function 'RoundQtrHour' in expression.
I went the help menu and found:
I get the message "Undefined function in an expression."
You've bound a control on a data access page to a calculated field
that uses a function that isn't supported on data access pages.
Functions supported on a data access page
A control in a data access page or a form that is open in PivotTable
view or PivotChart view can contain an expression that uses a
Microsoft Visual Basic for Applications (VBA) function. However, the
expression will generate an error unless it appears on the following
list.
Note This limitation doesn't apply to expressions in tables,
queries, views, stored procedures, or user-defined functions that you
have opened in PivotTable or PivotChart view.
Evidently, I'm trying to do what can't be done. I don't understand
the purpose of being able to build a function but not use it.
Is there any way around this beside building a long formula directly
in the query?
Thanks in advance for any help.
Angela
I just built a custom function in Access 2002 called RoundQtrHour
which rounds a number of minutes to the nearest quarter hour as a
decimal.
I tried to use it in a form and query and I got the error message:
Undefined function 'RoundQtrHour' in expression.
I went the help menu and found:
I get the message "Undefined function in an expression."
You've bound a control on a data access page to a calculated field
that uses a function that isn't supported on data access pages.
Functions supported on a data access page
A control in a data access page or a form that is open in PivotTable
view or PivotChart view can contain an expression that uses a
Microsoft Visual Basic for Applications (VBA) function. However, the
expression will generate an error unless it appears on the following
list.
Note This limitation doesn't apply to expressions in tables,
queries, views, stored procedures, or user-defined functions that you
have opened in PivotTable or PivotChart view.
Evidently, I'm trying to do what can't be done. I don't understand
the purpose of being able to build a function but not use it.
Is there any way around this beside building a long formula directly
in the query?
Thanks in advance for any help.
Angela