G
Guest
I'm using Acc97, and have written my own function "IsInStr", to find out if a
particular character is in a given string, and return the location in the
string of the first instance of the character
I've used this function in an update query and have no problem executing the
query manually. HOWEVER, when I switched over to my VBA module to execute
the query via code - I get "Undefined Function "IsInStr" in expression".
Here's the quandry - I've copied both query and function from another
database where they DID work. I know the query executes properly in the new
environment, because I ran it manually and it did what I wanted.
WHY am I getting this error in the new database and not the old one? All my
references are working - none missing, none unchecked that should be ...
nothing's out of place that I can find - and yet I get this error both when
executing a query using this function, and when opening a recordset using
this function.
Any ideas out there?
-Amanda
particular character is in a given string, and return the location in the
string of the first instance of the character
I've used this function in an update query and have no problem executing the
query manually. HOWEVER, when I switched over to my VBA module to execute
the query via code - I get "Undefined Function "IsInStr" in expression".
Here's the quandry - I've copied both query and function from another
database where they DID work. I know the query executes properly in the new
environment, because I ran it manually and it did what I wanted.
WHY am I getting this error in the new database and not the old one? All my
references are working - none missing, none unchecked that should be ...
nothing's out of place that I can find - and yet I get this error both when
executing a query using this function, and when opening a recordset using
this function.
Any ideas out there?
-Amanda