Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function is not available

Status
Not open for further replies.

cschnable

Programmer
May 24, 2001
36
US
I have a program which is run from an Access mde file in a runtime environment and a few people using it on their computers get this error when trying to open the referenced form. 99% of the people can open the form with no problem.


Function is not available in expressions in query
'Round((Date()-[M_Member_Since])/365.25,0) & "Years"


Is it possible that they are missing something in their runtime files or is something not referenced in the VBA reference library which should be.
 
The runtime version should be the same as the full access version that generated the mde.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I am using the Sagekey Solutions runtime package so I really don't think it is the runtime causing the problem and all of the customers are using Win XP.

I am wondering now if the problem might be referenced to their internal clock settings since part of the function includes "Date()". I am going to check on that possibility.

Any other ideas will be appreciated.
 
What are the references checked in the original MDB ?
When in VBE (Ctrl+G) menu Tools -> References ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
The following references are listed

Visual Basic for Applications
Microsoft Access 10.0 Object Library
Ole Automation
Microsoft ActiveX Data Objects 2.1 Library
Microsoft Office XP Web Components
Sagekey Security
Microsoft Windows Common Controls-2.6.0 (SP4)
Microsoft DAO 3.6 Object Library
 
My guess is that the culprit is here:
Microsoft Windows Common Controls-2.6.0 (SP4)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Should I just remove this reference

Microsoft Windows Common Controls-2.6.0 (SP4)

or replace it with something else
 
Should I just remove this reference
Untick it and if the mdb compiles properly then recreate a mde.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top