Re: InstrRev error

Tech-Archive recommends: Fix windows errors by optimizing your registry



The second PC may not have macro security set up the same way.

The second PC may not have service packs installed the same way.

Those are the official reasons, but I decided that it was unreliable,
and I when back to using a User Defined function for InstrRev.

InstrRev was a VB function that was only added to Access VBA
in Access 2000.

There was a list of VBA functions that the query environment
recognises. Unfortunately, the new function InstrRev was left
off of the list, and didn't work in Access 2000 queries.

Fortunately, it was added to the list later.

Later, there was a list of safe expressions that you can use in a query.
Unless you allow unsafe expressions, you can't use unsafe expressions.

Unfortunately InstrRev seemed to have an indeterminate status after
the 'safe expression' list came out, and worked on some machines
and not on others.

You can try to track down this problem, but I wouldn't bother:
you'll have to check it again on every PC you ever use.

Don't use InstrRev in a query. Use a user defined function.

(david)





"Steve S" <SteveS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DB8A849E-5940-40CF-9856-464A7D15BFCE@xxxxxxxxxxxxxxxx
When I run the following query on one pc I get the expected results.

SELECT [TblC].[Name], InstrRev([Name]," ") AS [Length of Last Name]
FROM TblC;

But when I run the very same query on another pc I get the error:
Undefined function "InstrRev" in expression.

Both pcs are running Access 2000 (9.0.6926 SP-3)

What am I missing here

--
Steve S


.



Relevant Pages

  • Re: InstrRev error
    ... "david" wrote: ... InstrRev was a VB function that was only added to Access VBA ... there was a list of safe expressions that you can use in a query. ...
    (microsoft.public.access.queries)
  • Re: Parameter query from mulitiple fields
    ... "all expressions where there is a OTR error", ... I want to query one specific ... > error code and pull all the expressions for that code (but ... >>Steve Schapel, Microsoft Access MVP ...
    (microsoft.public.access.queries)
  • Re: Expression error when running report, but not in query.
    ... And both expressions calculate correctly on every record. ... Another weird thing is that the 1st report works correctly off it's query. ... > Calculated fields misinterpreted ...
    (microsoft.public.access.reports)
  • Re: Time Format and Calculation
    ... running the DateDiff function twice in every query record - as opposed to ... > Doug Steele, Microsoft Access MVP ... >> i have no idea why the expressions didn't work. ... >>> Reports. ...
    (microsoft.public.access.forms)
  • Re: Relational lattice completeness
    ... We are talking about expressions as described by the following syntax ... of D and a finite set of relation variables and f a function that maps ... Now we define two expressions e1 and e2 as query equivalent if they ... I am still not entirely sure what 'completeness' you have in mind. ...
    (comp.databases.theory)